Skip to content

Instantly share code, notes, and snippets.

@Johnz86
Created April 28, 2018 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Johnz86/e5d5a1997f975b602d31dc888c38b860 to your computer and use it in GitHub Desktop.
Save Johnz86/e5d5a1997f975b602d31dc888c38b860 to your computer and use it in GitHub Desktop.
Mount local windows folder to docker volume in docker-machine virtualbox
#!/bin/bash
docker volume create $docker_volume
docker-machine ssh default -- "sh -c 'sudo mount -o uid=1000,gid=1000 -t vboxsf $docker_volume $(docker inspect $docker_volume -f {{.Mountpoint}})'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment