Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run docker daemon?

Tags:

docker

I'm trying to run docker daemon using command:

docker -d

but I receive in console:

unknown shorthand flag: 'd' in -d

what should I do to run docker daemon?

like image 787
Dmytro Nalyvaiko Avatar asked Apr 05 '17 13:04

Dmytro Nalyvaiko


1 Answers

If you stopped the service, you would need the following command to start it again:

$ sudo service docker start   # for work with SysVinit
$ sudo systemctl start docker # for work with Systemd

Also to stopped again, you might use:

$ sudo service docker stop   # for work with SysVinit
$ sudo systemctl stop docker # for work with Systemd
like image 140
user3642831 Avatar answered Oct 13 '22 22:10

user3642831