Software that lets you set up both the Docker client and the Docker server together
Boot2Docker architecture
Docker Client
Linux VM
Docker Server
1 2 3 4 5
| | Docker Server | | | Linux VM | | Docker Client | VirtualBox | +-------------------------------+ | Mac OSX or Windows |
Installation Steps
From the Boot2Docker official site: click the “MacOSX button”
Install the Boot2Docker package
Run the installer
Run the following in a terminal or similar
Create the Linux VM
1
$ boot2docker init
Start the Linux VM
1 2 3 4 5 6 7 8 9 10 11 12 13
$ boot2docker start
Waiting for VM and Docker daemon to start... ...........................ooooooooooooooooo Started. Writing /Users/kenzo/.boot2docker/certs/boot2docker-vm/ca.pem Writing /Users/kenzo/.boot2docker/certs/boot2docker-vm/cert.pem Writing /Users/kenzo/.boot2docker/certs/boot2docker-vm/key.pem
To connect the Docker client to the Docker daemon, please set: export DOCKER_HOST=tcp://192.168.59.103:2376 export DOCKER_CERT_PATH=/Users/kenzo/.boot2docker/certs/boot2docker-vm export DOCKER_TLS_VERIFY=1
Check the Linux VM status
1 2
$ boot2docker status running
Set the environment variables
When you start with boot2docker start, run the export settings it prints out