Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I access my containers on raspberry pi? #331

Closed
pimvdnoll opened this issue Dec 31, 2019 · 1 comment
Closed

How can I access my containers on raspberry pi? #331

pimvdnoll opened this issue Dec 31, 2019 · 1 comment

Comments

@pimvdnoll
Copy link

I had succesfully ran the docker containers on a AWS EC2 instance so I thought it would also work as easy on a Raspberry PI. The docker containers are running and everything is working but only if I connect a screen with HDMI and browse with a chromium browser to http://172.19.0.6:3000 but not if I point my browser from another laptop in my home network to the IP address of the raspberrypi (which is 192.168.3.49:3000).

How can I configure the docker configuration that 192.168.3.49:3000 will point to my 172.19.0.6:3000 docker container?

thnx for the help!

@adriankumpf
Copy link
Collaborator

AFAIK it does bind to 0.0.0.0 by default and therefore it should work out of the box. If docker ps indicates otherwise you could maybe try to explicitly bind to 0.0.0.0:

 ports:
      - 0.0.0.0:4000:4000

Or maybe firewall rules prevent access? Did you double check the IP address? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants