Answer the question
In order to leave comments, you need to log in
How to set up networking in Docker?
Good afternoon!
There is one machine, and Nginx is
running on it
- 2 containers (with volumes up to docker.sock) that want to communicate with Nginx through a public address, i.e. example.ru , not the container address.
Faced such a problem, if we make, say, ping example.com from one container
PING example.ru (192.168.1.147) 56(84) bytes of data.
64 bytes from example.ru (192.168.1.147): icmp_seq=1 ttl=64 time=0.069 ms
64 bytes from example.ru (192.168.1.147): icmp_seq=2 ttl=64 time=0.058 ms
64 bytes from example.ru (192.168.1.147): icmp_seq=3 ttl=64 time=0.057 ms
curl: (7) Failed to connect to example.ru port 80: No route to host
Build failed (system failure): container already exists
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