Skip to content

Instantly share code, notes, and snippets.

@ngpestelos
Created July 20, 2014 21:09
Show Gist options
  • Save ngpestelos/b6bb9f9cd067befaedf8 to your computer and use it in GitHub Desktop.
Save ngpestelos/b6bb9f9cd067befaedf8 to your computer and use it in GitHub Desktop.
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

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