![]() Previously, when the graphdir was a root of a mountpoint, we would not be able to cleanup the graphdir, as the script would umount in case target dir is a mount itself ```/etc/mtab /dev/xvdc1 /var/lib/docker btrfs ``` When running the script, the graphdir would be unmounted and it would remove a (possibly) empty folder. ``` Nuking /var/lib/docker ... (if this is wrong, press Ctrl+C NOW!) + sleep 10 + umount -f /var/lib/docker + rm -rf /var/lib/docker ``` This PR includes the necessary changes to nuke the folder on this scenario, including when the graphdir is a btrfs mount iself. Signed-off-by: Bruno Tavares <btavare@thoughtworks.com> |
||
---|---|---|
.. | ||
apparmor | ||
builder | ||
completion | ||
desktop-integration | ||
docker-device-tool | ||
gitdm | ||
httpserver | ||
init | ||
mkimage | ||
nnp-test | ||
reprepro | ||
selinux/docker-engine-selinux | ||
selinux-fedora-24/docker-engine-selinux | ||
selinux-oraclelinux-7/docker-engine-selinux | ||
syntax | ||
syscall-test | ||
udev | ||
vagrant-docker | ||
README.md | ||
REVIEWERS | ||
check-config.sh | ||
dockerize-disk.sh | ||
download-frozen-image-v1.sh | ||
download-frozen-image-v2.sh | ||
editorconfig | ||
mac-install-bundle.sh | ||
mkimage-alpine.sh | ||
mkimage-arch-pacman.conf | ||
mkimage-arch.sh | ||
mkimage-archarm-pacman.conf | ||
mkimage-busybox.sh | ||
mkimage-crux.sh | ||
mkimage-debootstrap.sh | ||
mkimage-pld.sh | ||
mkimage-rinse.sh | ||
mkimage-yum.sh | ||
mkimage.sh | ||
nuke-graph-directory.sh | ||
project-stats.sh | ||
report-issue.sh |
README.md
The contrib
directory contains scripts, images, and other helpful things
which are not part of the core docker distribution. Please note that they
could be out of date, since they do not receive the same attention as the
rest of the repository.