X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/68e068818d559ef35bdf2a138a93596337828ef9..3f7ec5c690ae313e1f08757a42792f9f12f6f486:/cookbooks/apt/recipes/docker.rb?ds=sidebyside diff --git a/cookbooks/apt/recipes/docker.rb b/cookbooks/apt/recipes/docker.rb index 7c8780779..2aeb832e3 100644 --- a/cookbooks/apt/recipes/docker.rb +++ b/cookbooks/apt/recipes/docker.rb @@ -19,6 +19,12 @@ include_recipe "apt" +docker_platform = if platform?("debian") + "debian" + else + "ubuntu" + end + docker_arch = if arm? "arm64" else @@ -26,8 +32,8 @@ docker_arch = if arm? end apt_repository "docker" do - uri "https://download.docker.com/linux/ubuntu" + uri "https://download.docker.com/linux/#{docker_platform}" arch docker_arch components ["stable"] - key "https://download.docker.com/linux/ubuntu/gpg" + key "https://download.docker.com/linux/#{docker_platform}/gpg" end