Keep pulling third-party Docker images until success

This commit is contained in:
cytopia
2019-01-10 20:08:21 +01:00
parent b2c1b8e453
commit 622af7851a
5 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ MOUNTPOINT="$( mktemp --directory )"
CONTAINER="mysql:5.6"
# Pull Container
run "docker pull ${CONTAINER}"
run "while ! docker pull ${CONTAINER}; do sleep 1; done"
# Start mysql container
mdid="$( docker_run "${CONTAINER}" "-e MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}" )"