0

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?

1 Answers1

1

If you are using minimum versions of the images like alpine, there's no bash shell in them. Just change it to node:16 and the bash will work.

DreamBold
  • 2,727
  • 1
  • 9
  • 24