Boot2docker: Restart docker service with "service docker stop" , start

Created on 11 Mar 2015  路  7Comments  路  Source: boot2docker/boot2docker

I use windows 7 and putty to access virtual box boot2docker-vm machine.
I am trying to restart docker service from ssh and i get:
"sudo: service: command not found"
Is service command not supported in boot2docker linux ?
How can I restart the service without restarting the vm ?

Most helpful comment

You can stop|start|restart docker using the init script.
For example:

sudo /etc/init.d/docker restart

All 7 comments

You can stop|start|restart docker using the init script.
For example:

sudo /etc/init.d/docker restart

It says /etc/init.d/ command not found :(

or just
sudo service docker stop
and then
sudo service docker start

Hi,
I am using debian 8 and when I try to execute service docker stop and/etc/init.d/docker stop nothing happened

On ubuntu and my docker has also gone rogue. I can't stop it at all.

EDIT: Also, I can't connect to my docker daemon either. Not only can I not kill the docker daemon, but I can't connect to it either. This is so fun.

/etc/init.d/docker: No such file or directory

If you are using boot2docker, then this question is solved: run the following from the VM sudo /etc/init.d/docker restart. Since you most likely installed Docker using docker-toolbox you need to get to the VM; to do so, run docker-machine ssh and then run the restart command there.

If you are having trouble stopping or restarting your Docker daemon in places that are not boot2docker, then this is not the place to file that issue. Try the Docker forums: https://forums.docker.com/.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  14Comments

KamilKopaczyk picture KamilKopaczyk  路  13Comments

mclarkson picture mclarkson  路  5Comments

mpas picture mpas  路  17Comments

linux-china picture linux-china  路  15Comments