[Nginx] Container Tips
Config file
mount nginx configuration files
Reload Nginx Inside Docker Container
-
Find your container name Use docker ps to find your nginx container.
-
Reload Nginx With
docker exec -it {container_name} {command}
you can directly access your container and execute commands. In my case the name of the container is nginx-server.$ docker exec -it nginx-server nginx -s reload
2016/08/18 09:52:38 [notice] 19#19: signal process started
$ docker exec -it nginx-server nginx -s reload
2016/08/18 09:52:38 [notice] 19#19: signal process started