Created
January 17, 2018 15:20
-
-
Save ghusta/e96f53a546b481a46010be33ec078088 to your computer and use it in GitHub Desktop.
Create a Docker Machine with Windows, VirtualBox and Boot2Docker with a customized shared folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem set MACHINE_STORAGE_PATH=D:\Dev\Docker\.docker\machine | |
docker-machine version | |
docker-machine ls | |
echo creation VM VirtualBox : Docker Machine (Help : docker-machine create --help) | |
rem var env (ex : proxy) : --engine-env | |
set VM_NAME=docker-dev | |
mkdir d:\Dev\Docker\.docker\machine\SharedFolders\%VM_NAME% | |
docker-machine create -d "virtualbox" --virtualbox-cpu-count "2" --virtualbox-disk-size "50000" --virtualbox-memory "2048" --virtualbox-share-folder "\\?\d:\Dev\Docker\.docker\machine\SharedFolders\%VM_NAME%:host-shared" %VM_NAME% |
See also Specifying configuration options for the created Docker engine, like for configuring the proxy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use sample with jenkins image :