Answer the question
In order to leave comments, you need to log in
How to fix container IP address in docker?
Good afternoon.
docker generates a new MAC and IP each time a container is restarted.
MAC can be fixed using the --mac-address key, but I could not find how to fix the IP.
I want to try to run php-fpm in the docker, but I really don’t want to fence the garden with the container host name and its subsequent resolving so that my nginx always knows where its backend is.
Please tell me, and whether to poke in the right place in the manual.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question