5. Shared Folders

1. Create a folder D: / share

2. Open the windows 7, open the Oracle VM VirtualBox, VM - settings - Shared Folders,
the left default-> Settings -> Shared Folders -> right click -> New Shared Folder -> d: / share

3. Right -> Create Share -> Option D: / share (selected automatically mount and fixed allocation, Auto-mount and Make Permanent, or restart the VM host, sharing loss)

4. Right-left default-> reboot

5.docker中
docker run -it --name c6 -v /share:/mnt centos /bin/bash

Guess you like

Origin www.cnblogs.com/xintao/p/11652551.html