Created on 08-19-2024 02:37 AM Edited on 08-19-2024 02:46 AM
| Description | 'Could Not Connect to Docket Daemon' with K8S runners using Lacework inline scanner in GitLab pipeline |
| Scope | Running GitLab with and using our inline scanner within a CI/CD pipeline |
| Solution |
You are deploying our inline scanner to a build pipeline in gitlab, running the job fails with the following error when using Kubernetes runners:
To verify the issue, please amend the following line in your pipeline - ./lw-scanner image evaluate image_name tag And add the following - ./lw-scanner image evaluate image_name tag --debug You will now see the following error
Also verify the runner is a Kubernetes type runner, to do this, go to the jobs page in Gitlab and look at the first few lines of the job log, you should see the executor type set to Kubernetes.
Environment
ResolutionThe issue here is a problem with the docker in docker (dind) service that GitLab provides where by it doesn’t come online in time for it to be used by the build job. To remedy this we can add a before script which will loop until the docker daemon is available - here is an example pipeline YAML
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.