]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apt/recipes/docker.rb
letencrypt: Use default certificate chain
[chef.git] / cookbooks / apt / recipes / docker.rb
index f28c15b0b17d7ee39c33eceef4233b6ea0d1d44e..7c8780779687ae8a48ff71954cac9bf1516e802c 100644 (file)
 
 include_recipe "apt"
 
+docker_arch = if arm?
+                "arm64"
+              else
+                "amd64"
+              end
+
 apt_repository "docker" do
   uri "https://download.docker.com/linux/ubuntu"
-  arch "amd64"
+  arch docker_arch
   components ["stable"]
   key "https://download.docker.com/linux/ubuntu/gpg"
 end