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 ?
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/.
Most helpful comment
You can stop|start|restart docker using the init script.
For example: