Reputation: 2780
ubuntu-gnome@ubuntu-gnome:~$ docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.30/images/json: dial unix /var/run/docker.sock: connect: permission denied
ubuntu-gnome@ubuntu-gnome:~$ sudo docker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ubuntu-gnome@ubuntu-gnome:~$
Upvotes: 0
Views: 102
Reputation: 513
To check whether docker is running $sudo systemctl status docker
If it is not running then enable it using $sudo systemctl enable docker
and start it using $sudo systemctl start docker
Upvotes: 0
Reputation: 146490
After install docker, it is not running by default. Assuming this is Ubuntu 16.04
You need to run below to start docker
$ sudo systemctl start docker
And below to set it to start on boot
$ sudo systemctl enable docker
Upvotes: 1