How do I access exposed ports on my Docker containers from outside the VM?

So, I’ve installed Shipyard by following the Quickstart guide, and I now have a container running called shipyard which exposes a HTTP server on I can access it just fine from within the droplet using curl, but I can’t connect to it over the Internet.

I’ve tried disabling ufw; as well as enabling it, setting DEFAULT_FORWARD_POLICY=“ACCEPT” in /etc/default/ufw and allowing port 8000. I’ve tried using multiple VMs in multiple regions, even.

I’m using a newly-created droplet with the Docker image.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You need to set up a proxy to forward the connection on. We have a tutorial explaining how to use nginx to do that: <br> <br> <br> <br>That should point you in the right direction. Let us know if you need any more help!