avoid trying to update containerd on rebuild cluster
This commit is contained in:
parent
f8b4efe436
commit
6967423002
|
|
@ -114,6 +114,11 @@ DOCKER_SOURCES
|
||||||
sudo apt-get remove -y containerd runc || true
|
sudo apt-get remove -y containerd runc || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if dpkg -s containerd.io >/dev/null 2>&1; then
|
||||||
|
sudo apt-mark hold containerd.io
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
apt_get update || {
|
apt_get update || {
|
||||||
diagnose_apt_network "APT update failed before installing containerd.io" "containerd.io"
|
diagnose_apt_network "APT update failed before installing containerd.io" "containerd.io"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -672,6 +677,11 @@ DOCKER_SOURCES
|
||||||
sudo apt-get remove -y containerd runc || true
|
sudo apt-get remove -y containerd runc || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if dpkg -s containerd.io >/dev/null 2>&1; then
|
||||||
|
sudo apt-mark hold containerd.io
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
apt_get update || {
|
apt_get update || {
|
||||||
diagnose_apt_network "APT update failed before installing containerd.io" "containerd.io"
|
diagnose_apt_network "APT update failed before installing containerd.io" "containerd.io"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue