How can I volume map two nested directories in a Windows Docker image?

0

Is there a way to volume map two nested directories inside a Windows Docker container?

For example, say I have two directories, DirA and DirB. Is it possible to set up a volume mapping like this?

volumes:
    - ./DirA:C:/containerDir
    - ./DirB:C:/containerDir/DirB

I'm currently attempting a similar volume mapping, and I'm receiving the error:

ERROR: for iis Cannot start service iis: container 530989faa584c9ffda2bd70fbb2cf008de92089e4a1ac05284139b766f2cc76f encountered an error during Start: failure in a Windows system call: The compute system exited unexpectedly. (0xc0370106) ERROR: Encountered errors while bringing up the project.

If I remove the volume mappping, and instead copy the directories into the image as part of the Docker build, I don't receive this error.

Is what I'm trying to do possible in a Windows Docker container?

docker
docker-compose
docker-volume
docker-for-windows
asked on Stack Overflow Sep 14, 2018 by Nathan Friend

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0