On Ubuntu 14.04, the docker.io package installs Docker 0.9.1.
According to the documentation, use the following commands to install the current version:
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 $ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" $ sudo apt-get update $ sudo apt-get install lxc-docker
There is also a simple script available to help with this process:
$ curl -s https://get.docker.io/ubuntu/ | sudo sh
Alternatively, check out the azure-docker-registry project for an example of how to automate Azure provisioning and Docker container deployment. For example, this is Ansible playbook :
- name: create docker data directory file: path=/mnt/data/docker state=directory - name: store docker files in data disk file: src=/mnt/data/docker dest=/var/lib/docker state=link - name: add repository key command: creates=/etc/apt/sources.list.d/docker.list apt-key adv
Fernando correia
source share