chadoe/docker-cleanup-volumes

Support for 1.8.3

nritholtz opened this issue · 0 comments

Getting error when running against Docker 1.8.3, due to Cannot connect to the Docker daemon when calling docker info:

docker-cleanup-volumes nritholtz$ docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --entrypoint=bash --rm martin/docker-cleanup-volumes
bash-4.3# docker info
FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host? 
bash-4.3# ls /var/run/
docker.sock
bash-4.3# ls /var/lib/docker/
aufs               graph              linkgraph.db       tmp                vfs
containers         init               repositories-aufs  trust              volumes
bash-4.3# exit
exit

docker-cleanup-volumes nritholtz$ docker info
Containers: 0
Images: 280
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 280
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.10-boot2docker
Operating System: Boot2Docker 1.8.3 (TCL 6.4); master : af8b089 - Mon Oct 12 18:56:54 UTC 2015
CPUs: 4
Total Memory: 1.955 GiB
Name: default
ID: IXJO:JTHJ:ZABX:BB3M:ZC2L:6TQR:H7QO:MLW2:YKDX:5IQX:SYAW:KQPW
Debug mode (server): true
File Descriptors: 12
Goroutines: 18
System Time: 2015-10-13T18:58:42.28216136Z
EventsListeners: 0
Init SHA1: 
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Username: nritholtz
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox