Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Cannot remove stopped container #141

Open
friism opened this issue Sep 17, 2017 · 3 comments
Open

Cannot remove stopped container #141

friism opened this issue Sep 17, 2017 · 3 comments

Comments

@friism
Copy link

friism commented Sep 17, 2017

docker -H "npipe:////./pipe//docker_lcow" ps -aq
34efc67b6d1a
8693b3b051b3
bc9fcaa57728
5c9c256eb967
0ecf2d5ec463
42fc2165ae1f
a2d0f894a25e

docker -H "npipe:////./pipe//docker_lcow" rm 34efc67b6d1a

Error response from daemon: driver "lcow" failed to remove root filesystem for 34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824: rename C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824 C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824-removing: Access is denied.

From daemon log:

DEBU[2017-09-17T10:46:40.235184900-07:00] Calling DELETE /v1.31/containers/34efc67b6d1a
DEBU[2017-09-17T10:46:40.247181800-07:00] lcowdriver: remove: id 34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824
DEBU[2017-09-17T10:46:40.247181800-07:00] lcowdriver: remove: id 34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824: layerPath C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824
ERRO[2017-09-17T10:46:40.248180100-07:00] Error removing mounted layer 34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824: rename C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824 C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824-removing: Access is denied.
DEBU[2017-09-17T10:46:40.248180100-07:00] FIXME: Got an API for which error does not match any expected type!!!: rename C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824 C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824-removing: Access is denied.  error_type="*os.LinkError" module=api
ERRO[2017-09-17T10:46:40.248180100-07:00] Handler for DELETE /v1.31/containers/34efc67b6d1a returned error: driver "lcow" failed to remove root filesystem for 34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824: rename C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824 C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824-removing: Access is denied.
DEBU[2017-09-17T10:46:40.249178400-07:00] FIXME: Got an API for which error does not match any expected type!!!: rename C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824 C:\lcow4\lcow\34efc67b6d1ae2ea982f232980a700d2b1895e62c8e161e35d44bfafa742e824-removing: Access is denied.  error_type="*os.LinkError" module=api
.\dockerd.exe -v
Docker version master-dockerproject-2017-09-15, build 5c10698
@rn
Copy link
Contributor

rn commented Sep 17, 2017

Do you know how you ended up with these containers?
What does hcsdiag list say?

@friism
Copy link
Author

friism commented Sep 17, 2017

They're just normal busybox containers started with docker -H "npipe:////./pipe//docker_lcow" run -ti busybox sh

hcsdiag list
793CB895-B536-4A0F-AE01-EFBC75AFCEAA
    VM,                         Created

C63E61AB-392A-4EC9-995F-B6316ED1B501
    VM,                         Created

@rn
Copy link
Contributor

rn commented Sep 17, 2017

can't you rm any of them or just the one you tried? There are two VMs hanging around and it might just happen that 34efc67b6d1a is one of them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants