Docker error in the pipeline

I’m trying to get this example running in my pipeline but I kept getting this Docker error:

Running with gitlab-runner 15.4.0 (43b2dc3d)
on SEITaaS HPDxKxWy
Preparing the “docker” executor
00:09
ERROR: Failed to remove network for build
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:863:0s)
Will be retried in 3s …
ERROR: Failed to remove network for build
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:863:0s)
Will be retried in 3s …
ERROR: Failed to remove network for build
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:863:0s)
Will be retried in 3s …
ERROR: Job failed (system failure): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:863:0s)

Any idea? I provided the link above to the project.

Appreciate any help!

If this is not the right forum, please suggest the alternative.

Thanks,
Tuan

Hi,

The example project specifically says it works with shell executor. From the job output your GitLab Runner is using docker executor, hence the error.

Hi,

its strange but i have to try several times until this error goes away.
I guess the VM ist not responding fast enough even its pretty well fitted VM hardware.

Also i have to use privileged = true in runner config-file: config.toml

Best,

Bodo