From fd01843277c96b6ae428c81ede5cac48722e6c6a Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 5 Feb 2023 15:02:03 +0900 Subject: [PATCH] Update `docker` recipe. --- cookbooks/docker/install.rb | 2 +- cookbooks/docker/setup.rb | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cookbooks/docker/install.rb b/cookbooks/docker/install.rb index 5839d2e..dddac9a 100644 --- a/cookbooks/docker/install.rb +++ b/cookbooks/docker/install.rb @@ -19,7 +19,7 @@ execute 'apt-get update' do not_if 'which docker' end -%w(docker-ce docker-ce-cli containerd.io).each do |p| +%w(docker-ce docker-ce-cli containerd.io docker-compose-plugin).each do |p| package p end diff --git a/cookbooks/docker/setup.rb b/cookbooks/docker/setup.rb index 422708a..79c6d63 100644 --- a/cookbooks/docker/setup.rb +++ b/cookbooks/docker/setup.rb @@ -1,4 +1,10 @@ # Ignore the certificate +directory '/etc/docker/' do + owner 'root' + group 'root' + mode '0600' +end + remote_file '/etc/docker/daemon.json' do owner 'root' group 'root'