Last Updated: February 25, 2016
·
8.119K
· hopsoft

Manually remove Docker containers on Ubuntu

Occasionally Docker prevents me from removing containers with docker rm ID To get around this problem I run the following:

service docker stop
rm -rf /var/lib/docker/containers/*
rm -rf /var/lib/docker/vfs/dir/*
service docker start

Note: I'm using devicemapper for the storage driver.

1 Response
Add your response

You can use docker rm -f [container] to force docker to remove containers.

over 1 year ago ·