#!/bin/bash

dockerd-entrypoint.sh --log-level "${DOCKERD_LOG_LEVEL:-warn}" "$@" &
DOCKERD_PID="$!"

while ! docker version 1>/dev/null; do
  kill -0 "$!" || exit
  sleep .5
done

bash "$@"
exit_code="$?"

kill %1
exit "$exit_code"

#!/bin/bash

dockerd-entrypoint.sh --log-level "${DOCKERD_LOG_LEVEL:-warn}" &
DOCKERD_PID="$!"

while ! docker version 1>/dev/null; do
  kill -0 "$!" || exit
  sleep .5
done

bash "$@"
exit_code="$?"

kill %1
exit "$exit_code"

Revert "Pass arguments to `dockerd-entrypoint.sh`"
Revert "Pass arguments to `dockerd-entrypoint.sh`"

This reverts commit 2a40997e0844edca9665cd96f8d23541fdabb187.
