Created
January 12, 2023 16:08
-
-
Save voidbar/52d6ba012b0721872b0f454385dbd020 to your computer and use it in GitHub Desktop.
Why is it so hard to mount a windows directory to a Windows container?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mounting current directory to C:/tmp inside Server 2016 docker image | |
docker run --mount src="$pwd",dst=C:/tmp/,type=bind -it mcr.microsoft.com/windows/servercore:ltsc2016 powershell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment