[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: 10.0.75.2 and application is available by this IP.

Information

Windows 10 Enterprise
Docker version 1.11.1, build 5604cbe

Steps

  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.

Michael