Modify C:\Users\<Username>\.docker\machine\machines\default\config.json
docker-machine restart
- Note that the ip address is still managed by Virtual Box DHCP, which is set in VBox->File->Preferences->Network.
eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env)
docker-machine ssh
https://www.daocloud.io/mirror#accelerator-doc
docker-machine ssh default
sudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=http://223f5cef.m.daocloud.io |g" /var/lib/boot2docker/profile
exit
docker-machine restart default
docker pull imagine10255/centos6-lnmp-php56
Config share folder in VBox GUI, then run following in virtual machine ssh
mkdir -p ~/docker && sudo mount -t vboxsf docker ~/docker
- if not mounted, dir will be automaticly mounted to
/docker
at root in this case
docker run -dit -p 80:80 --mount type=bind,source=/docker,target=/home/docker imagine10255/centos6-lnmp-php56
docker container ls
docker exec -it ??? bash