Question
how to configure docker with floating ip?
Hi Guys,
On my Droplet, let’s say
i have IP ADDRESS: X.X.X.99
I assign a new floating IP address like: X.X.X.100
I would like to run two docker container like that
docker run –name mynginx1 -p X.X.X.99:80:80 nginx
docker run –name mynginx2 -p X.X.X.100:80:80 nginx
The second command is not working so far.
What should i do to make it work?
Thank you!
Antoine
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
https://stackoverflow.com/questions/45210965/how-to-configure-docker-with-floating-ip-address-on-digital-ocean-droplet