# limitations under the License.
#
-include_recipe "apt"
+include_recipe "apt::docker"
package %w[
docker-ce
directory "/etc/docker" do
owner "root"
group "root"
- mode 0o755
+ mode "755"
end
template "/etc/docker/daemon.json" do
source "daemon.json.erb"
owner "root"
group "root"
- mode 0o644
+ mode "644"
end
service "docker" do
action [:enable, :start]
subscribes :restart, "template[/etc/docker/daemon.json]"
- not_if { ENV["TEST_KITCHEN"] }
end