Unable to connect to docker

:hugs: Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.

Problem to solve

I’m trying to get a package to connect to a docker service however I get “Unable to connect to docker…”. I’m new to this dind concept so not quite sure where to start to solve this. I’ve read the files where Splunk have implemented this but I can’t see what I’m missing in the pipeline code.

Steps to reproduce

Currently only have the absolute bare minimum to have the command functionality working for me. It’s split into three files atm.

.gitlab-ci.yml
.install-contentctl.yml
.test.yml

Configuration

.gitlab-ci.yml

default:
image: python:3.11.9-bullseye

.install-contentctl

.install-contentctl:
before_script: |
python3.11 -m venv .venv
source .venv/bin/activate
pip install contentctl

.test.yml

include:
"- local: “pipeline/.install-contentctl.yml”

test:
services:
- docker:dind
before_script:
- !reference [.install-contentctl, before_script]
script:
- docker info
- contentctl test --verbose

Helpful resources

security_content/.github/workflows/unit-testing.yml at develop · splunk/security_content

splunk/contentctl: Splunk Content Control Tool (github.com)