Skip to content

Reload Nginx from outside of the container? #1806

Answered by Dr-Shadow
leoborlot asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone having issues with reload, you can signal the process you need with these commands :

docker exec -it nginx-proxy sh -c 'kill -SIGHUP $(pidof docker-gen)'
docker exec -it nginx-proxy sh -c 'kill -SIGHUP $(cat /run/nginx.pid)'

Of course, you will probably need to escape the $ or ' depending on your use case (in scripts, etc...)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rhansen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants