The latest version of boot2docker 0.8.0 comes with docker 0.10.0 but we get some strange errors. So if you want to have multiple boot2docker/docker versions parallel you can use this process
Boot2docker has 3 parts:
- boot2docker vm: a VirtualBox vm which is a customized TinyCoreLinux image a bare minimum linux which has docker already installed in it.
- boot2docker.iso: the boot2docker disk image
- a shell script: which helps to create/manage the VirtualBox which uses the boot2docker.iso
The boot2docker shell script will create the VirtualBox vm for you with the boot2docker init
command. It has some
configurable variables:
- VM_NAME : the name of the vm, it will be displayed in VirtualBox gui
- DOCKER_PORT : docker server runs inside the vm on port 4243, but it has to be forwarded to the host (your laptop)
- SSH_HOST_PORT : sometimes you have to ssh into the vm, this is the port the inner 22 is forwarded to
- VM_MEM : memory used by the VirtualBox vm default is 1024
if you want to install a specific boot2docker run the following:
curl -Lo /tmp/b2d-version http://j.mp/b2d-version
B2D_RELEASE=v0.7.1 source /tmp/b2d-version
This script will do the following:
- create a
<HOME>/.boot2docker-<VERSION>
- donwnload the version specifiv
boot2docker.iso
- create
<HOME>/.boot2docker-<VERSION>/.profile
- create a
b2d-select
alias to choose between boot2docker installations
The profile sets the following ports:
boot2docker version | docker version | ssh port | docker port |
---|---|---|---|
0.7.0 | 0.9.0 | 2090 | 4290 |
0.7.1 | 0.9.1 | 2091 | 4291 |
0.8.0 | 0.10.0 | 2010 | 4210 |