A simple script wait-for-docker
to wait for Docker daemon to be active.
With pipx
:
pipx install wait-for-docker
With pip
:
python3 -m pip install wait-for-docker
wait-for-docker && command_which_uses_docker
The command waits until Docker daemon gets active. There's no configuration.