Ngnix Docker not serving content Ngnix Docker not serving content nginx nginx

Ngnix Docker not serving content


You forgot the port on docker run

docker run -p 80:80 dockerregistry.test.com/devicelab/devicelab:latest


@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