Docker Volume Out of Disk Space?

Recently I have been working on a set of projects that use Docker extensively. I received an error message that appeared to be an out of disk space message. At first I thought it was the host machine that was out of space. On further investigation it was the docker volume that was out of space. It makes sense for containers to have limits it’s just odd to encounter them – when you shut down the containers the volumes remain until you clean them up.

Here are some useful clean up commands for Docker.

 docker volume rm  $(docker volume ls) 

 docker rm -f $(docker ps -a -q)

 docker volume prune

 docker rmi -f $(docker images -q)

Getting Boot2docker working on windows 7

I have been experimenting with docker on windows.

I started with using chocolatey to install boot2docker.

Currently docker requires ssh on windows (boot2docker ssh)

The advice on the following page got me past the following error:

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

The problem was the ports being used by virtualbox. I reinstalled and set up the port forwarding and everything now works.