X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/52febd39d60247059d8321449e4193a2c9e7482f..80f80217d53cb28acacdb9dcae525d8bffbc89e9:/cookbooks/docker/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/docker/recipes/default.rb b/cookbooks/docker/recipes/default.rb index 3d7fd2104..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]" @@ -60,3 +66,7 @@ systemd_timer "docker-system-prune" do on_unit_active_sec "7d" randomized_delay_sec "4h" end + +service "docker-system-prune.timer" do + action [:enable, :start] +end