File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ function install_debian_containerd() {
65
65
# Make sure ca-certificates are up-to-date
66
66
update-ca-certificates -f
67
67
68
- curl -fsSL " ${REPO_URL} /gpg" | apt-key add -
68
+ install -m 0755 -d /etc/apt/keyrings
69
+ curl -fsSL " ${REPO_URL} /gpg" | tee /etc/apt/keyrings/docker.asc
70
+ chmod a+r /etc/apt/keyrings/docker.asc
69
71
70
72
if [ " ${DIST_VERSION} " = " sid" ]; then
71
73
echo ' Debian sid ("unstable") cannot be used for packaging: replace with the actual codename'
@@ -77,7 +79,7 @@ function install_debian_containerd() {
77
79
# Once a containerd package becomes stable it will also be available in the test channel,
78
80
# so this logic works for both cases.
79
81
# (See also same logic in install_rpm_containerd)
80
- echo " deb [arch=${ARCH} ] ${REPO_URL} ${DIST_VERSION} test" > /etc/apt/sources.list.d/docker.list
82
+ echo " deb [arch=${ARCH} signed-by=/etc/apt/keyrings/docker.asc ] ${REPO_URL} ${DIST_VERSION} test" > /etc/apt/sources.list.d/docker.list
81
83
82
84
apt-get update
83
85
}
You can’t perform that action at this time.
0 commit comments