mirror of https://github.com/easzlab/kubeasz.git
fix:easzup下载docker位置
parent
1e4b3147bd
commit
bd93f5d24f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue