99dfae8822b30d63713bdc74303de99df1bf4749
There is no need to call `os.Stat` on the driver filesystem path of a container as `os.RemoveAll` already handles (properly) the case where the path no longer exists. Given the results of the stat() were not even being used, there is no value in erroring out because of the stat call failure, and worse, it prevents daemon cleanup of containers in "Dead" state unless you re-create directories that were already removed via a manual cleanup after a failure. This brings removal in overlay in line with aufs/devicemapper drivers which don't error out if the filesystem path no longer exists. Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp) Upstream-commit: 6ed11b53743668dba3bcf6ecef4e57a399d95569 Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%