Reputation: 19
I installed docker and pulled the latest image of nginx and also ran the command docker run -d -P nginx. next I assigned nginx a port number with docker ps command and when I went to run the image in chrome using the ip address and port number did load get check firewall settings please help?.
Upvotes: 0
Views: 359
Reputation: 431
try this
docker run --name localNginx -p 45678:80 nginx
and access http://localhost:45678 in your browser
you can replace 45678 with the port you want but not 80, because nginx is listening to 80 port by default.
Upvotes: 1