Skip to content

Instantly share code, notes, and snippets.

@rogeriopradoj
Created August 9, 2018 12:50
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 rogeriopradoj/560c3715529cf3668a96c4dc4b455d17 to your computer and use it in GitHub Desktop.
Save rogeriopradoj/560c3715529cf3668a96c4dc4b455d17 to your computer and use it in GitHub Desktop.
How to enable default shared folder in docker-machine for docker toolbox portable from https://portapps.github.io/app/docker-toolbox-portable/

portapps/docker-toolbox-portable#1


Hi, do you think it would be a good option having instructions on how to enable, besides data\shared, the original shared folder of docker-toolbox on windows (c/Users -> c:\Users, auto-mount, full)?

I think it should be a good addition to the info page for new comers as me.


Just to point, I tried this way, and it seems to work (in docker toolbox terminal):

  • verify current shared folders
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showvminfo default

# Shared folders:
#
#Name: 'shared', Host path: '\\?\C:\Users\MY_NAME\PortableApps\docker-toolbox-portable\data\shared' #(machine mapping), writable
  • add "default share" "c/Users" pointing to "c:\Users"
# stop machine
docker-machine stop

# actual command
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" sharedfolder add default --name "c/Users" --hostpath "\\\?\c:\Users" --automount

# restart machine
docker-machine start
  • verify shared folders after command
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showvminfo default

# Shared folders:
#
#Name: 'shared', Host path: '\\?\C:\Users\MY_NAME\PortableApps\docker-toolbox-portable\data\shared' (machine mapping), writable
#Name: 'c/Users', Host path: '\\?\c:\Users' (machine mapping), writable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment