Skip to content

Instantly share code, notes, and snippets.

@modeyang
Created August 15, 2018 07:57
Show Gist options
  • Select an option

  • Save modeyang/656c16889eb557dd1c20ac62adef1aa2 to your computer and use it in GitHub Desktop.

Select an option

Save modeyang/656c16889eb557dd1c20ac62adef1aa2 to your computer and use it in GitHub Desktop.
docker device remove
#! /bin/bash
for dm in /dev/mapper/docker-*; do
umount $dm; dmsetup remove $dm
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment