# Docker fails to install on Ubuntu Server vm-minimal install

**URL:** https://meta.discourse.org/t/docker-fails-to-install-on-ubuntu-server-vm-minimal-install/25766
**Category:** Self-hosting
**Tags:** docker
**Created:** [2015年二月27日 09:37 UTC](https://meta.discourse.org/t/docker-fails-to-install-on-ubuntu-server-vm-minimal-install/25766 "2015-02-27T09:37:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mateusz\_szymborski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mateusz_szymborski/32/122528_2.png) [@mateusz\_szymborski](https://meta.discourse.org/u/mateusz_szymborski)
#### Post date: [2015年二月27日 09:37 UTC](https://meta.discourse.org/t/docker-fails-to-install-on-ubuntu-server-vm-minimal-install/25766/1 "2015-02-27T09:37:48Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年二月27日 09:48 UTC](https://meta.discourse.org/t/docker-fails-to-install-on-ubuntu-server-vm-minimal-install/25766/2 "2015-02-27T09:48:13Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![mateusz\_szymborski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mateusz_szymborski/32/122528_2.png) [@mateusz\_szymborski](https://meta.discourse.org/u/mateusz_szymborski)
#### Post date: [2015年二月27日 09:49 UTC](https://meta.discourse.org/t/docker-fails-to-install-on-ubuntu-server-vm-minimal-install/25766/3 "2015-02-27T09:49:45Z")

</div>

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

```
