To remove the virtual machine and restart it again, like @ramden, you could do:
You can remove all containers from the current environment by running
$ docker rm $(docker ps -a -q)
To delete all images:
$ docker rmi $(docker images -q)
Reboot the virtual machine by clearing the entire cache of old images by doing the following
$ boot2docker delete $ boot2docker init $ boot2docker start
I just ran into the same problem and couldn't find the answer right away, maybe it's worth it to be interested in the future.
Greetings.
source share