Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ansible playbook to setup Docker 1.1.1 in Vagrant
---
- hosts: all
remote_user: vagrant
tasks:
- name: install apt signing key
apt_key: url=https://get.docker.io/gpg state=present
- name: add repository
copy: src=docker.list dest=/etc/apt/sources.list.d/docker.list
- name: install package
apt: pkg=lxc-docker=1.1.1 update_cache=yes state=present
- name: ensure docker is running
service: name=docker state=started enabled=true
- name: add vagrant user to docker group
user: name=vagrant groups=docker append=yes
@ngpestelos
Copy link
Author

ngpestelos commented Jul 20, 2014

Create a docker.list:

deb http://get.docker.io/ubuntu docker main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment