bgruening/docker-recipes — pull request #8 by smithcr (2014-08-07 06:14:54+00:00)
Title: docker container can be restarted

previously line 26 os.path.isdir( src) would be true even if src was a symlink,
the following line shutil.rmtree( src ) would descend into the symlinked directory and remove files
but not remove the symlink, this would cause data to be lost if a container was restarted (instead of re-running the image)