I've installed Docker Toolbox in macOS and I'm following Docker's simple tutorial on deploying Nginx.
I've executed docker run
and confirmed that my container has been created:
docker run --name mynginx1 -P -d nginx
docker ps
40001fc50719 nginx "nginx -g 'daemon off" 23 minutes ago Up 23 minutes 0.0.0.0:32770->80/tcp, 0.0.0.0:32769->443/tcp mynginx1
however when I curl http://localhost:32770
, I get a connection refused error:
curl: (7) Failed to connect to localhost port 32770: Connection refused
I'm struggling to see what I could have missed here. Is there an extra step I need to perform, in light of me being on macOS?