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'