docker compose fails with strange hcsshim::CreateComputeSystem error

It seems that after latest update of Docker to 20.10.13 or maybe some Windows 10 update there is some problem with volumes. The error is a bit cryptic

(something like ERROR: for {containerName} Cannot start service {containerName}: hcsshim::CreateComputeSystem {someVeryLongHashHere}: Access is denied.)

but it seems that at least for now you have to refrain from using volumes in your compose and just create a folder and point your volume there.

a small sample how this might look like before:

backend:
image: path/to/image:$TAG
..
ports:
– 8000:8000
volumes:
– “volumeName:C:/folderInContainer”

webserver:
image: path/to/image:$TAG

ports:
– 80:80
volumes:
– “volumeName:C:/folderInContainer”

volumes:
volumeName:

now to make this work for now, you have to create a folder where Docker can access it and use as this volume folder (which would hide this away from you and neatly be managed by Docker). I made a subfolder volumeName next to my docker-compose file.

“fixed” docker-compose file:

backend:
image: path/to/image:$TAG
….
ports:
– 8000:8000
volumes:
– “C:/Work/dev/compose/blablabla/volumeName:C:/volumeName”

webserver:
image: path/to/image:$TAG

ports:
– 80:80
volumes:
– “C:/Work/dev/compose/blablabla/volumeName:C:/volumeName”

in a nutshell you will map on every container the same folder on a drive…. this works for me and I am looking forward to have this fixed.

0 comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.