fix:easzup下载docker位置

dev1
gjmzj 2019-06-26 15:48:20 +08:00
parent fc51dde54b
commit 53009f55bf
1 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@ function install_docker() {
else else
echo -e "[INFO] \033[33mdownloading docker binaries\033[0m $DOCKER_VER" echo -e "[INFO] \033[33mdownloading docker binaries\033[0m $DOCKER_VER"
curl -C- -O --retry 3 "$DOCKER_URL" || { echo "[ERROR] downloading docker failed"; exit 1; } curl -C- -O --retry 3 "$DOCKER_URL" || { echo "[ERROR] downloading docker failed"; exit 1; }
mv ./docker-${DOCKER_VER}.tgz /etc/ansible/down
fi fi
tar zxf ./docker-${DOCKER_VER}.tgz -C /etc/ansible/down && \ tar zxf /etc/ansible/down/docker-${DOCKER_VER}.tgz -C /etc/ansible/down && \
mv ./docker-${DOCKER_VER}.tgz /etc/ansible/down && \
mv /etc/ansible/down/docker/* /opt/kube/bin && \ mv /etc/ansible/down/docker/* /opt/kube/bin && \
ln -sf /opt/kube/bin/docker /bin/docker ln -sf /opt/kube/bin/docker /bin/docker