Skip to content

Instantly share code, notes, and snippets.

@voidbar
Created January 12, 2023 16:08
Show Gist options
  • Save voidbar/52d6ba012b0721872b0f454385dbd020 to your computer and use it in GitHub Desktop.
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?
# 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