mirror of https://github.com/easzlab/kubeasz.git
update docker 20.10.22
parent
d2ea44343b
commit
7a96745b82
10
ezdown
10
ezdown
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue