jbuszkie Posted March 10, 2020 Share Posted March 10, 2020 I have a docker that won't stop. I've tried manually killing it (docker kill containername) and I can't. I tried to kill the process in the container that was still running, but I got an error.... My guess is I won't be able to shutdown/restart the array until the whole docker subsystem is happy. How can I kill/restart the whole docker processes? Thanks, Jim Quote Link to comment
jbuszkie Posted March 10, 2020 Author Share Posted March 10, 2020 (edited) This Stackoverflow post was helpful. I was able to kill the process this way. We'll see if I can stop/restart the array gracefully. I need to wait for a disk zeroing to finish first before I can try... Quote All the docker: start | restart | stop | rm --force | kill commands may not work if the container is stuck. You can always restart the docker daemon. However, if you have other containers running, that may not be the option. What you can do is: ps aux | grep <<container id>> | awk '{print $1 $2}' The output contains: <<user>><<process id>> Then kill the process associated with the container like so: sudo kill -9 <<process id from above command>> That will kill the container and you can start a new container with the right image. Edited March 10, 2020 by jbuszkie Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.