Skip to content

Commit

Permalink
fix(installer): start registry failed (#1593)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoryu committed Sep 20, 2021
1 parent b288b75 commit 14cc30e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/docker/tools/tke-installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ function start_installer() {
}

function start_registry() {
echo "Step.6 start regisry [in process]"
result=$(echo $@ | grep "\-\-upgrade")
if [[ "$result" != "" ]];then
echo "Step.6 upgrade will not start local registry"
echo "Step.6 start registry [skip]"
else
echo "Step.6 start regisry [in process]"
mkdir -p $REGISTRY_DIR
nerdctl run $RegistryHTTPOptions "tkestack/registry-${ARCH}:$REGISTRY_VERSION"
nerdctl run $RegistryHTTPSOptions "tkestack/registry-${ARCH}:$REGISTRY_VERSION"
nerdctl run $RegistryHTTPOptions "tkestack/registry-${ARCH}:$REGISTRY_VERSION" $@
nerdctl run $RegistryHTTPSOptions "tkestack/registry-${ARCH}:$REGISTRY_VERSION" $@
echo "Step.6 start registry [done]"
fi
}
Expand Down

0 comments on commit 14cc30e

Please sign in to comment.