No commit activity in last 3 years
No release in over 3 years
Itamae recipe plugin to install Docker.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

>= 1.6
 Project Readme

Itamae::Plugin::Recipe::Docker

Itamae plugin to install Docker in the way described in https://docs.docker.com/installation.

Supported Platforms

  • Arch Linux
  • CentOS
  • Debian
  • Fedora
  • Gentoo
  • OSX
  • Red Hat Enterprise Linux
  • Ubuntu

Installation

Add this line to your application's Gemfile:

gem 'itamae-plugin-recipe-docker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install itamae-plugin-recipe-docker

Usage

Write a following line to your itamae recipe.

# recipe.rb

# Install Docker, start it and ensure it starts on boot.
include_recipe "docker::install"

Execute it with: itamae ssh -h ... recipe.rb.

If you want to add users to docker group, configure your node.yml as:

# node.yml
docker:
  # Users who is added to docker group (optional)
  users:
    - k0kubun

Execute it with: itamae ssh -h ... -y node.yml recipe.rb

NOTE: Some versions of Debian and Ubuntu reboot.
And you should apply the recipe again after the reboot.

mitamae

This plugin can be used for mitamae too. Put this repository under ./plugins as git submodule.

git submodule add https://github.com/k0kubun/itamae-plugin-recipe-docker.git plugins/itamae-plugin-recipe-docker

License

MIT License