From ddec8e4da01aac8631e167534d5f6e6fdb769b3c Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 18 Nov 2021 11:29:22 -0500 Subject: [PATCH] install specific docker verison --- setup/so-functions | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index e03b49d27..fbcdb00fc 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1206,8 +1206,12 @@ docker_install() { add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" >> "$setup_log" 2>&1 retry 50 10 "apt-get update" >> "$setup_log" 2>&1 || exit 1 ;; - esac - retry 50 10 "apt-get -y install docker-ce python3-docker" >> "$setup_log" 2>&1 || exit 1 + esac + if [ $OSVER == "bionic" ]; then + retry 50 10 "apt-get -y install docker-ce=5:20.10.5~3-0~ubuntu-bionic python3-docker" >> "$setup_log" 2>&1 || exit 1 + elif [ $OSVER == "focal" ]; then + retry 50 10 "apt-get -y install docker-ce=5:20.10.8~3-0~ubuntu-focal python3-docker" >> "$setup_log" 2>&1 || exit 1 + fi fi docker_registry {