Docker Community Forums

Share and learn in the Docker community.

UCP installation failed with docker.sock is not a socket

(Haitao Jiang) #1

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp install -i
INFO[0000] Verifying your system is compatible with UCP
FATA[0000] docker.sock is not a socket. You must run with “-v /var/run/docker.sock:/var/run/docker.sock”

The host has docker CS engine 1.10.2-cs1

docker info

Containers: 3
Running: 0
Paused: 0
Stopped: 3
Images: 11
Server Version: 1.10.2-cs1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 18
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Volume: local
Network: bridge null host
Kernel Version: 3.16.0-50-generic
Operating System: Ubuntu 14.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.798 GiB
Name: ddc-1
Http Proxy: http://xxx:8080
Https Proxy: http://xxx:8080
WARNING: No swap limit support

(Haitao Jiang) #2

OK, I figured it out. One needs to configure the Docker daemon so that it listens to the UNIX socket, i.e. -H unix:///var/run/docker.sock.