Docker Community Forums

Share and learn in the Docker community.

I can't seem to access a container through localhost on my mac


(Alexanderdo) #1

Hello everyone!

I am running through the Docker for Mac tutorial and I can’t seem to connect to my container through localhost through this very simple command… Any ideas?

docker run -d -p 80:80 --name webserver nginx

I tried looking on my system and I don’t believe any application is using that port number.


(Alexanderdo) #2

FYI: I am using Docker for Mac with Docker version 18.06.1-ce, build e68fc7a


(Jhadik307) #3

I have this same issue. Did you ever manage to figure it out?