Itamae plugin to install Docker in the way described in https://docs.docker.com/installation.
- Arch Linux
- CentOS
- Debian
- Fedora
- Gentoo
- OSX
- Red Hat Enterprise Linux
- Ubuntu
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
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.
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
MIT License