Cannot reach web server inside Docker

I’m doing some recapitulation of my Docker knowledge but have run into a problem that I don’t understand.

I created a simple web server in Go and have no problems running it inside a Docker container. But I cannot reach it from outside.

  • docker-compose gives ERROR: Cannot locate specified Dockerfile: Dockerfile
  • Docker fig multiple server deployment
  • Docker Error: push is already in progress
  • nginx no such file or directory
  • Docker: getcwd: cannot access parent directories
  • Service and Replication controller
  • Since I thought that perhaps something is blocking access to Docker containers, I tried running an SSHd container. That works fine; I can reach it and log in using SSH.

    You can see my Dockerfile and my small Go code in this gist:

    Why can’t I reach the small web server?

  • Docker: base image
  • Zero Downtime Deployment for Micro Service architecture
  • Linux / Fedora sandboxing processes and filesystem changes
  • Docker. Connect from one container to another container with mysql
  • Limit number of process in docker
  • Linking Containers with Pipeline
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.