Docker Community Forums

Share and learn in the Docker community.

[solved] How to access a web app in the browser? (Which ip/port?)


(Andreynering) #1

Expected behavior

I’m somewhat new to Docker. I’m trying the beta for Windows. It was very easy to install Gogs. The app itself runs, but I simply don’t know how to access it in the browser. Internaly it uses the port 3000, I tried http://localhost:3000 with no luck.

Actual behavior

Nothing happens when trying to access it on the browser.

Information

Windows 10 Professional x64.

Steps to reproduce the behavior

  1. docker pull gogs/gogs
  2. docker run gogs/gogs

(Michael Friis) #2

You app is available on http://docker:3000 - details in the getting started guide: https://beta.docker.com/docs/windows/getting-started/#step-4-explore-the-application-and-run-examples


(Andreynering) #3

Thank you, that worked

For reference, I had to use docker run -p 3000:3000 gogs/gogs and then open http://docker:3000/