Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How permanently kill dockerd?

When I run top in linux terminal I have:

 1147 root      20   0 1227548  34604   5784 S   1,7  0,9   1:10.88 dockerd 

How can I kill it permanently? I know I can kill it manually by linux kill, but at the next work with computer dockerd will be shown again.

like image 570
Kenenbek Arzymatov Avatar asked Oct 22 '16 12:10

Kenenbek Arzymatov


People also ask

How do I kill Dockerd?

Kill All Containers Using Docker Compose If you do, killing multiple containers takes one command: docker-compose down. You could also run docker-compose without detached mode. If so, you'll just use ^C to kill all containers. And there you have it—all containers killed!

How do you force kill a container?

docker rm -f The final option for stopping a running container is to use the --force or -f flag in conjunction with the docker rm command. Typically, docker rm is used to remove an already stopped container, but the use of the -f flag will cause it to first issue a SIGKILL.

How do I get rid of usr bin Dockerd?

To stop the docker process that is already running you can just press ctrl + c or send a kill signal to it.


1 Answers

dockerd is common Linux daemon, nothing more than that. You should disable it the way suitable for your OS, depending on system services manager used.

Here are some examples (docker service name may vary system to system). First command stops the service, second disables its launch on system start.

For systemd driven OS (e.g. Ubuntu 16.04, RHEL/CentOS 7, Arch Linux), that will be:

sudo systemctl stop docker
sudo systemctl disable docker

For docker installed via snap:

sudo snap stop docker
sudo snap disable docker

For relatively old Ubuntu (before 15.10), using Upstart service manager:

sudo service docker stop
sudo sh -c 'echo manual > /etc/init/docker.override'

For older CentOS6 and some others:

sudo service dockerd stop
sudo chkconfig dockerd off 

et cetera

You should look for instructions on how to disable service for specific OS you're interested in

like image 121
agg3l Avatar answered Oct 09 '22 13:10

agg3l