Docker Community Forums

Share and learn in the Docker community.

Apache2 run nothing appear


Hello, I’m coming to you because I have a problem.
I have an image that contains an apache server.
When I run it with the command “docker run web” the server works, but I can’t see it with my browser. However, I think it should be localhost.

I can see this message, and after that nothing. Any idea ?
Thanks a lot.


You haven’t exposed port 80. I think you want:

docker run -p 4000:80 web

1 Like

Yes, I forgot the port 80… It’s stupid I’m sorry and thanks ! :smiley: