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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @antoine0148fdc88ebae8de13b
When using the Floating IP, the droplet is assigned an Anchor IP, which is the IP you should listen to. Read more about Anchor IP here - and how to retrieve it: https://www.digitalocean.com/community/tutorials/how-to-use-floating-ips-on-digitalocean#droplet-anchor-ips
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.