Skip to content

Instantly share code, notes, and snippets.

@zamd
Created September 28, 2018 10:30
Show Gist options
  • Save zamd/c7c9fa3609eb0d4f6f8f4203ea0615c9 to your computer and use it in GitHub Desktop.
Save zamd/c7c9fa3609eb0d4f6f8f4203ea0615c9 to your computer and use it in GitHub Desktop.
  • Create a volume to mount host director into container

docker volume create --driver local --opt device=/Users/zamd/tmp2/dotnetdev --opt type=none --opt o=bind devnet

  • Start dotnet container with host directory

docker run -itd -v dotnetdev:/app e1a56dca783e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment