B
B
begemot_nn2015-01-29 17:19:59
linux
begemot_nn, 2015-01-29 17:19:59

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

1 answer(s)
P
pumbaEO, 2015-01-29
@begemot_nn

IMHO this is not correct.
Use service discovery and address by name, consul.io , skydns

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question