Skip to content

Commit

Permalink
v3.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
brod-intel authored Aug 24, 2023
1 parent 97c3119 commit 1f1f62c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,15 @@ if [ $freemem -lt 16777216 ]; then
run "Configuring Image Database" \
"mkdir -p $ROOTFS/tmp/docker && \
chmod 777 $ROOTFS/tmp && \
killall dockerd && sleep 2 && \
/usr/local/bin/dockerd ${REGISTRY_MIRROR} --data-root=$ROOTFS/tmp/docker > /dev/null 2>&1 &" \
killall dockerd && \
while (ls /var/run/docker.pid > /dev/null 2>&1 ); do sleep 0.5; done && \
/usr/local/bin/dockerd ${REGISTRY_MIRROR} --data-root=$ROOTFS/tmp/docker >> ${TMP}/docker.log 2>&1 &" \
"$TMP/provisioning.log"

while (! docker ps > /dev/null ); do sleep 0.5; done; sleep 3
while (! docker ps > /dev/null ); do sleep 0.5; echo "Waiting for Docker to start" >> ${PROVISION_LOG}; done; sleep 3
fi


if [ ! -z "${param_docker_login_user}" ] && [ ! -z "${param_docker_login_pass}" ]; then
run "Log in to a Docker registry" \
"docker login -u ${param_docker_login_user} -p ${param_docker_login_pass}" \
Expand Down

0 comments on commit 1f1f62c

Please sign in to comment.