From 6146924eba32bc4c8d9325f39415359af238817a Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 2 Dec 2020 15:29:25 +0100 Subject: [PATCH] fix: [docker-host] debian 10 compatibility, removing support for registry v1 Signed-off-by: Valentin Lab --- precise/host/hooks/install.d/60-docker.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/precise/host/hooks/install.d/60-docker.sh b/precise/host/hooks/install.d/60-docker.sh index e47419d..6c4bc33 100755 --- a/precise/host/hooks/install.d/60-docker.sh +++ b/precise/host/hooks/install.d/60-docker.sh @@ -6,7 +6,7 @@ if ! type -p docker; then curl -sSL https://get.docker.io | sh fi -docker_version=17.06 +docker_version=17 if ! [[ "$(docker --version)" == "Docker version $docker_version"* ]]; then version="$(apt-cache madison docker-ce | cut -f 2 -d \| | grep "$docker_version" | head -n 1 | xargs echo)" ## DOWNGRADE to 17.xx because 18.xx do not support registry v1 @@ -14,12 +14,6 @@ if ! [[ "$(docker --version)" == "Docker version $docker_version"* ]]; then need_restart=true fi - -if ! egrep 'disable-legacy-registry' /lib/systemd/system/docker.service 2>/dev/null; then - sed -ri 's/^(ExecStart=.*)$/\1 --disable-legacy-registry=false/g' /lib/systemd/system/docker.service - need_restart=true -fi - if [ "$need_restart" ]; then systemctl daemon-reload && service docker restart