mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 06:56:29 +00:00
Wait for Docker daemon (#1586)
Sometimes the first command after starting the Docker daemon container fails, presumably because the container did not start yet. Wait until the Docker daemon is ready.
This commit is contained in:
parent
f012f09d4f
commit
e0e270df1a
@ -3,7 +3,14 @@ set -e
|
|||||||
|
|
||||||
APPARMOR_URL="https://version.home-assistant.io/apparmor.txt"
|
APPARMOR_URL="https://version.home-assistant.io/apparmor.txt"
|
||||||
|
|
||||||
# Install supervisor
|
# Make sure we can talk to the Docker daemon
|
||||||
|
echo "Waiting for Docker daemon..."
|
||||||
|
while ! docker version 2> /dev/null > /dev/null; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
# Install Supervisor, plug-ins and landing page
|
||||||
|
echo "Loading containers..."
|
||||||
for image in /build/images/*.tar; do
|
for image in /build/images/*.tar; do
|
||||||
docker load --input "${image}"
|
docker load --input "${image}"
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user