Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to enable default shared folder in docker-machine for docker toolbox portable from https://portapps.github.io/app/docker-toolbox-portable/

https://github.com/portapps/docker-toolbox-portable/issues/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
You can’t perform that action at this time.