S
S
stanlee2016-08-28 02:34:29
Docker
stanlee, 2016-08-28 02:34:29

Is it possible to add ip addresses of docker containers to hosts file?

Now all containers receive dynamic addresses and cannot be pinged by name from the main system.
Is it possible to enter the ip addresses of running docker containers in the hosts file of the main system?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2016-08-28
@pvlg

You can enter, you can also specify a static ip address for the container

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question