Skip to content

How to trigger reload on nginx-proxy from other container? #1965

Answered by Dr-Shadow
onnimonni 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: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
4 participants
Converted from issue

This discussion was converted from issue #450 on April 20, 2022 09:56.