Skip to content

Instantly share code, notes, and snippets.

@daniel-garcia
Created June 14, 2014 14:47
Show Gist options
  • Save daniel-garcia/67f79cabb17f8e490326 to your computer and use it in GitHub Desktop.
Save daniel-garcia/67f79cabb17f8e490326 to your computer and use it in GitHub Desktop.
umount orphaned docker mounts
service docker stop # wait for all lxc-start processes to stop
lsblk # look for dm devices that are mounted)
umount -l /var/lib/docker/devicemapper/mnt/*
lsblk # (look for dm devices still registered with the kernel)
for x in /dev/mapper/docker-*; do dmsetup remove $x; done
lsblk # (should be down to just the physical devices on the host)
service docker start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment