Skip to content

Commit

Permalink
fix: docker startup err not detected
Browse files Browse the repository at this point in the history
  • Loading branch information
gmemcc authored and tke-robot committed Jun 18, 2020
1 parent 31819ae commit a24e820
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/docker/tools/tke-installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ function install_docker() {

# becuase first start docker may be restart some times
systemctl start docker || :
for i in {1..60}; do
secs=60
for i in `seq 1 $secs`; do
if systemctl is-active --quiet docker; then
break
fi
sleep 1
done
if (( i == 10)); then
if (( i == secs )); then
echo "start docker failed, please check docker service."
exit 1
fi
Expand Down

0 comments on commit a24e820

Please sign in to comment.