John Howard
efdad53744
Windows: DetachVhd attempt in cleanup
...
Signed-off-by: John Howard <jhoward@microsoft.com >
This is a fix for a few related scenarios where it's impossible to remove layers or containers
until the host is rebooted. Generally (or at least easiest to repro) through a forced daemon kill
while a container is running.
Possibly slightly worse than that, as following a host reboot, the scratch layer would possibly be leaked and
left on disk under the dataroot\windowsfilter directory after the container is removed.
One such example of a failure:
1. run a long running container with the --rm flag
docker run --rm -d --name test microsoft/windowsservercore powershell sleep 30
2. Force kill the daemon not allowing it to cleanup. Simulates a crash or a host power-cycle.
3. (re-)Start daemon
4. docker ps -a
PS C:\control> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7aff773d782b malloc "powershell start-sl…" 11 seconds ago Removal In Progress malloc
5. Try to remove
PS C:\control> docker rm 7aff
Error response from daemon: container 7aff773d782bbf35d95095369ffcb170b7b8f0e6f8f65d5aff42abf61234855d: driver "windowsfilter" failed to remove root filesystem: rename C:\control\windowsfilter\7aff773d782bbf35d95095369ffcb170b7b8f0e6f8f65d5aff42abf61234855d C:\control\windowsfilter\7aff773d782bbf35d95095369ffcb170b7b8f0e6f8f65d5aff42abf61234855d-removing: Access is denied.
PS C:\control>
Step 5 fails.
2018-09-06 13:17:50 -07:00
..
2018-06-15 16:03:33 -07:00
2018-08-22 12:51:47 +01:00
2018-08-21 23:49:08 +00:00
2018-06-13 09:04:30 +02:00
2018-02-05 16:51:57 -05:00
2018-06-08 11:07:48 +08:00
2018-09-06 13:17:50 -07:00
2018-06-27 14:59:31 -07:00
2018-08-13 21:59:11 -07:00
2018-02-05 16:51:57 -05:00
2018-05-23 21:57:30 +02:00
2018-08-26 17:30:40 +09:00
2018-02-05 16:51:57 -05:00
2018-08-20 15:28:15 -05:00
2018-03-15 17:56:15 +01:00
2017-09-06 12:05:19 -04:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-08-13 21:59:11 -07:00
2018-02-05 16:51:57 -05:00
2018-08-13 21:59:11 -07:00
2018-04-19 06:35:54 -04:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-05-31 10:11:18 -04:00
2018-04-23 13:52:44 -07:00
2018-02-05 16:51:57 -05:00
2018-02-09 11:24:09 -08:00
2018-02-05 16:51:57 -05:00
2018-06-27 17:11:29 -07:00
2018-02-26 16:48:29 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-16 11:25:14 -05:00
2018-02-05 16:51:57 -05:00
2018-08-13 21:59:11 -07:00
2018-07-26 11:17:56 -07:00
2018-07-26 11:17:56 -07:00
2018-06-13 09:04:30 +02:00
2018-02-05 16:51:57 -05:00
2018-04-19 06:35:54 -04:00
2018-06-13 09:04:30 +02:00
2018-08-13 21:59:11 -07:00
2018-05-25 14:21:07 -04:00
2018-08-13 21:59:11 -07:00
2018-08-13 21:59:11 -07:00
2018-07-26 11:17:56 -07:00
2018-08-13 21:59:11 -07:00
2018-04-17 14:06:53 -04:00
2018-08-13 21:59:11 -07:00
2018-07-26 11:17:56 -07:00
2018-02-05 16:51:57 -05:00
2018-08-13 21:59:11 -07:00
2018-08-31 12:43:04 -07:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-06-13 09:04:30 +02:00
2018-05-25 14:21:07 -04:00
2018-02-05 16:51:57 -05:00
2018-05-25 14:21:07 -04:00
2018-05-25 14:21:07 -04:00
2018-02-05 16:51:57 -05:00
2018-02-21 18:26:16 -05:00
2018-06-13 09:04:30 +02:00
2018-03-02 14:05:36 +01:00
2018-02-05 16:51:57 -05:00
2018-06-08 11:07:48 +08:00
2018-08-13 21:59:11 -07:00
2018-02-05 16:51:57 -05:00
2018-04-23 13:52:44 -07:00
2018-06-13 09:04:30 +02:00
2018-08-21 11:36:15 +02:00
2018-08-21 11:36:15 +02:00
2018-08-21 22:03:24 +02:00
2018-02-05 16:51:57 -05:00
2018-06-13 09:04:30 +02:00
2018-02-05 16:51:57 -05:00
2018-05-25 14:21:07 -04:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-07-11 15:51:51 +02:00
2018-08-17 17:05:21 -07:00
2018-08-17 17:05:21 -07:00
2018-02-05 16:51:57 -05:00
2018-08-28 21:40:13 +02:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-08-28 21:40:13 +02:00
2018-08-17 09:36:56 -07:00
2018-08-23 20:02:04 +00:00
2018-02-05 16:51:57 -05:00
2018-05-14 15:48:32 -04:00
2018-05-25 15:18:53 -04:00
2018-02-05 16:51:57 -05:00
2018-05-30 15:22:10 -04:00
2018-07-11 15:51:51 +02:00
2018-05-25 14:21:07 -04:00
2018-02-05 16:51:57 -05:00
2018-08-20 18:55:01 +00:00
2018-08-13 21:59:11 -07:00
2018-08-27 15:38:46 -07:00
2018-06-15 16:14:17 -07:00
2018-06-15 16:14:17 -07:00
2018-02-05 16:51:57 -05:00
2018-06-27 17:11:29 -07:00
2018-06-13 09:04:30 +02:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-08-31 12:43:04 -07:00
2018-02-05 16:51:57 -05:00
2018-06-13 09:04:30 +02:00
2018-06-08 11:07:48 +08:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-06-08 19:19:06 -07:00
2018-02-05 16:51:57 -05:00
2018-02-26 16:49:37 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-04-23 13:52:44 -07:00
2018-05-03 10:04:33 -07:00
2018-02-05 16:51:57 -05:00
2018-05-24 18:24:36 -07:00
2018-02-05 16:51:57 -05:00
2018-06-13 09:04:30 +02:00
2018-02-05 16:51:57 -05:00
2018-07-11 15:51:51 +02:00
2018-05-23 17:50:54 +02:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-06-08 11:07:48 +08:00
2018-02-07 14:27:09 -05:00
2018-08-09 00:45:00 +09:00
2018-04-19 06:35:54 -04:00
2018-04-19 06:35:54 -04:00
2018-08-13 21:59:11 -07:00
2018-08-13 21:59:11 -07:00
2018-08-30 15:58:49 -07:00
2018-04-23 13:52:44 -07:00
2018-08-13 21:59:11 -07:00