github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/scripts/test/e2e/wait-on-daemon (about)

     1  #!/usr/bin/env bash
     2  set -eu -o pipefail
     3  
     4  echo "Waiting for docker daemon to become available at $DOCKER_HOST"
     5  while ! docker version > /dev/null; do
     6      sleep 0.3
     7  done
     8  
     9  docker version