X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d6a747f9ce483f18b6019446dfad0a92b2c292f6..1a062eb5304d0ef835313e5948053fcdccf20ecf:/cookbooks/docker/recipes/default.rb?ds=inline diff --git a/cookbooks/docker/recipes/default.rb b/cookbooks/docker/recipes/default.rb index 6e98de4da..1c8643d03 100644 --- a/cookbooks/docker/recipes/default.rb +++ b/cookbooks/docker/recipes/default.rb @@ -23,6 +23,7 @@ package %w[ docker-ce docker-ce-cli containerd.io + docker-compose-plugin ] directory "/etc/docker" do @@ -38,6 +39,11 @@ template "/etc/docker/daemon.json" do mode "644" end +service "containerd" do + action [:enable, :start] + subscribes :restart, "template[/etc/docker/daemon.json]" +end + service "docker" do action [:enable, :start] subscribes :restart, "template[/etc/docker/daemon.json]"