Docker fails to install on Ubuntu Server vm-minimal install

docker

(Mateusz Szymborski) #1

I have in Vbox ubuntu-server vm-minimal instalation.

apt-get install -y curl && curl -sSL https://get.docker.com/ubuntu/ | sudo sh

reboot

docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host? 

docker info

FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host? 

docker ps

Cannot connect to the Docker daemon. Is 'docker -d' running on this host? 

I made run and fast checking:

root@ubuntu1:~# service docker status
docker stop/waiting
root@ubuntu1:~# service docker start
docker start/running, process 2913
root@ubuntu1:~# service docker status
docker start/running, process 3156
root@ubuntu1:~# service docker status
docker start/pre-start, process 3311
root@ubuntu1:~# service docker status
docker start/running, process 3455
root@ubuntu1:~# service docker status
docker stop/waiting

How to fix it?


(Jeff Atwood) #2

Hmm, from the guide

wget -qO- https://get.docker.io/ | sh

Presumably that’s not different from your first command but I’d say give it a try. Docker is not installing on your machine.

  • Is it Ubuntu 14.04?
  • Is it x64?

(Mateusz Szymborski) #3

Fixed:

docker -d
INFO[0000] +job serveapi(unix:///var/run/docker.sock)   
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) 
WARN[0000] WARNING: Udev sync is not supported. This will lead to unexpected behavior, data loss and errors 
INFO[0000] +job init_networkdriver()                    
INFO[0000] -job init_networkdriver() = OK (0)           
INFO[0000] WARNING: Your kernel does not support cgroup swap limit. 
FATA[0000] Error loading docker apparmor profile: fork/exec /sbin/apparmor_parser: no such file or directory 

root@ubuntu1:~# apt-get install apparmor