[solved] Question(problem) about port forwarding and localhost application availibility

Expected behavior

Jenkins application is opened

Actual behavior

Page say: This site can’t be reached.
But if look at the log: Docker say that container attached to IP: and application is available by this IP.


Windows 10 Enterprise
Docker version 1.11.1, build 5604cbe


  1. Start docker
  2. Open cmd and execute command: docker run -p 8080:8080 -p 50000:50000 jenkins:2.0-alpine
  3. Wait for docker completely init
  4. Try to navigate to: localhost:8080

Your app is available not on localhost but using the docker hostname. Details here: https://beta.docker.com/docs/windows/getting-started/

This may change in the future, and Windows and Mac may not currently have the same behavior.