简体   繁体   中英

Can't kill supervisord inside of docker container

I have docker container and it has supervisord inside. I wish to kill that process

root         1  0.0  0.1  59768 13360 ?        Ss+  20:29   0:01 /usr/bin/python /usr/bin/supervisord

I login

sudo docker exec -ti blahblah bash

root# kill -KILL 1

it does not kills process 1 but I can kill any another process

If you kill the process the whole container would stop. So you might as well run.

docker stop containerName

or if you want to force it you can change stop to "kill" or "rm -f"(if you also want to remove the container)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM