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

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.

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

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