Question

Cant access docker from ip address Docker/Node.js

Hello I have the basic server which I have docker installed. I was able to grab my project off github and install it on the docker server. Everything seemed to work ok. My ip address is http://64.225.0.97:8080/I do not get a connection. Even running it without http://64.225.0.97

22/tcp LIMIT Anywhere
2375/tcp ALLOW Anywhere
2376/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
Apache ALLOW Anywhere
8080 ALLOW Anywhere
22/tcp (v6) LIMIT Anywhere (v6)
2375/tcp (v6) ALLOW Anywhere (v6)
2376/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
Apache (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)

too many duplicates. but I had uninstalled apache. I isntalled node.js to the server as well as docker.

2a19408a0fef project “docker-entrypoint.s…” 2 hours ago Up 2 hours 0.0.0.0:8080->8081/tcp jolly_ptolemy

This is what my status is and I dont have a firewall configured on digitalocean yet but do i need to add anything. Need some help. Thanks


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.

Hello,

Your firewall rules look good. There are no duplicates: one rule is for IPv4 and the second one is for IPv6.

Your Docker container seems to be exposing port 8080 correctly, you need to make sure that the node application inside the container is actually running on port 8080 as well.

How I would usually check what ports I should use, is by running docker inspect followed by the image ID, there you should look for the ExposedPorts section and make sure that it matches the one that you are using.

Hope that this helps!

Regards, Bobby