update docker 20.10.22

pull/1226/head
gjmzj 2023-01-11 15:54:41 +08:00
parent d2ea44343b
commit 7a96745b82
1 changed files with 5 additions and 5 deletions

10
ezdown
View File

@ -13,7 +13,7 @@ set -o pipefail
#set -o xtrace
# default settings, can be overridden by cmd line options, see usage
DOCKER_VER=20.10.18
DOCKER_VER=20.10.22
KUBEASZ_VER=3.5.0
K8S_BIN_VER=v1.26.0
EXT_BIN_VER=1.6.4
@ -525,6 +525,10 @@ function start_local_registry() {
function start_kubeasz_docker() {
# create cmd alias in /root/.bashrc
sed -i '/docker exec/d' /root/.bashrc
echo "alias dk='docker exec -it kubeasz' # generated by kubeasz" >> /root/.bashrc
[[ -d "$BASE/roles/kube-node" ]] || { logger error "not initialized. try 'ezdown -D' first."; exit 1; }
docker ps -a --format="{{ .Names }}"|grep kubeasz > /dev/null 2>&1 && \
{ logger warn "kubeasz container is already existed"; return 0; }
@ -549,10 +553,6 @@ function start_kubeasz_docker() {
ln -s /usr/bin/python3 /usr/bin/python
fi
# create cmd alias in /root/.bashrc
sed -i '/docker exec/d' /root/.bashrc
echo "alias dk='docker exec -it kubeasz' # generated by kubeasz" >> /root/.bashrc
# run kubeasz docker container
docker run --detach \
--env HOST_IP="$host_ip" \