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 startNote: I'm using devicemapper for the storage driver.
Written by Nathan Hopkins
Related protips
1 Response
 
You can use docker rm -f [container] to force docker to remove containers.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Docker 
Authors
Related Tags
#docker
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
 
