moby--moby/contrib
Bruno Tavares 5f98b97749 Nuke when graphdir is a mount
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>
2016-11-01 22:22:25 -02:00
..
apparmor apparmor: fix version checks to work properly 2016-02-15 20:36:07 +11:00
builder sed replace apt mirror with default deb.debian.org for debian distros 2016-10-25 13:25:21 -07:00
completion Merge pull request #27731 from albers/completion-export--output 2016-10-28 10:59:05 -07:00
desktop-integration
docker-device-tool Add docs about how to extend devicemapper thin pool 2016-04-20 10:49:51 +08:00
gitdm Add gitdm configuration 2016-05-28 21:08:20 -07:00
httpserver
init Change TMPDIR to DOCKER_TMPDIR 2016-08-23 08:45:46 +05:30
mkimage Update contrib/mkimage/debootstrap to account for Debian LTS changes 2016-05-04 08:39:45 -07:00
nnp-test Add support for NoNewPrivileges in docker 2016-03-07 09:47:02 -08:00
reprepro add support for building first ARM debian package 2016-01-29 00:21:17 +01:00
selinux/docker-engine-selinux Add selinux policy per distro 2016-08-04 14:29:22 -07:00
selinux-fedora-24/docker-engine-selinux Add selinux policy per distro 2016-08-04 14:29:22 -07:00
selinux-oraclelinux-7/docker-engine-selinux Add Oracle Linux distro specific selinux policy 2016-08-10 13:33:56 -07:00
syntax Remove unmaintained Dockerfile syntax for Kate 2016-10-25 15:42:27 -07:00
syscall-test Add a test that the default seccomp profile allows execution of 32 bit binaries 2016-07-27 18:42:34 +01:00
udev
vagrant-docker Remove LXC support. 2015-11-05 17:09:57 -05:00
README.md Add .md extension to readme for markdown rendering 2016-02-24 20:39:46 +00:00
REVIEWERS
check-config.sh Update required modules for overlay dataplane encryption 2016-10-11 14:06:55 -07:00
dockerize-disk.sh
download-frozen-image-v1.sh update download-frozen-image.sh to v2 registry 2015-12-01 13:16:42 -08:00
download-frozen-image-v2.sh request a new token before downloading each layer 2016-02-14 16:56:07 +08:00
editorconfig added editorconfig 2016-10-20 22:18:16 -02:00
mac-install-bundle.sh Add a script to install a bundle into Docker for Mac 2016-10-05 13:21:18 +02:00
mkimage-alpine.sh Additional repo and container cleanup 2015-12-28 14:11:56 +01:00
mkimage-arch-pacman.conf
mkimage-arch.sh Changed to 1800 second timeout for all ARMV* 2016-07-10 18:47:14 -07:00
mkimage-archarm-pacman.conf Fixed arm arch image maker to support arm versions other than 7 2016-07-10 18:46:35 -07:00
mkimage-busybox.sh
mkimage-crux.sh
mkimage-debootstrap.sh
mkimage-pld.sh add script to make base image for PLD Linux 2016-05-31 09:20:51 +03:00
mkimage-rinse.sh
mkimage-yum.sh Add errexit to mkimage-yum.sh 2016-09-14 12:04:04 +02:00
mkimage.sh Updated usage information because of removed short parameters. 2015-07-16 10:44:58 +02:00
nuke-graph-directory.sh Nuke when graphdir is a mount 2016-11-01 22:22:25 -02:00
project-stats.sh
report-issue.sh add execute bit to contrib/report-issue.sh 2016-02-16 12:55:15 +02:00

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.