I am writing a yaml anchor in .gitlab-ci.yml
as below:
.docker_daemon_to_start: &docker_daemon_to_start
- timeout 300 /bin/bash -c -- 'while ! docker info; do sleep 1; done'
In the above command I have tried both /bin/bash
and /usr/bin/bash
, but the pipeline is giving an error as,
timeout: can't execute '/bin/bash': No such file or directory
Is there any to fix this error to get the pipeline in running state?