update docker 20.10.22

v3.3
gjmzj 2023-01-20 10:52:42 +08:00
parent 359e3efa48
commit 97a80d9f54
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.3.2
K8S_BIN_VER=v1.24.9
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" \