How to kill the whole docker process??


Recommended Posts

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

Link to comment

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 by jbuszkie
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.