Ngnix Docker not serving content
@rafaelncarvalho was correct in regards to the -p
param, but for clarification the -p
is to publish the already exposed port to the outside the network. Without the -p
nginx will be accessible if you exec -it bash
in, but not outside. The -p
aka --publish
also allows gives you control for mapping the container port to what you choose. ex docker container run -p 8080:80 nginx
will publish the nginx server on port 8080