name 'docker'
description 'Docker Engine'

run_list(
  'recipe[docker-grid::engine]',
)

#env_run_lists

default_attributes(
)

override_attributes(
  'docker-grid' => {
    'install_flavor' => 'dockerproject',
    #'install_flavor' => 'os-repository',
    'engine' => {
      'version_on_centos' => '1.13.0-1',   # docker-engine
      #'version_on_centos' => '1.12.6-1',   # docker-engine
      #'version_on_centos' => '1.12.5-14',  # docker
      #'version_on_centos' => '1.11.2-1',   # docker-engine
      #'version_on_centos' => '1.10.3-1',   # docker-engine
      #'version_on_centos' => '1.10.3-59',  # docker
      'version_on_ubuntu' => '1.13.0-0',   # docker-engine
      #'version_on_ubuntu' => '1.12.3-0',   # docker-engine
      #'version_on_ubuntu' => '1.12.3-0ubuntu4~16.04.2',  # docker.io
      #'version_on_ubuntu' => '1.11.2-0',   # docker-engine
      #'version_on_ubuntu' => '1.10.3-0ubuntu6',          # docker.io
      'storage-driver_on_centos' => 'overlay',
      'storage-driver_on_ubuntu' => 'overlay',  # default: aufs
      #'userns-remap' => 'default',
      'daemon_extra_options' => '-H fd://',
      # for docker >= 1.10, docker-engine >= 1.12 (on rhel family)
      # '-H fd://' option automatically removed by this cookbook.
      # See https://github.com/docker/docker/issues/22847
    },
  },
)
