Setup Gitlab Runner
Step 1: Run the GitLab Runner Container
docker run -it --entrypoint /bin/bash gitlab/gitlab-runner:latest
If you encounter a "Not healthy" error related to Docker permissions while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock, follow the next step.
Step 2: Adjust Docker Socket Permissions
To resolve the permission issue, execute the following command to grant appropriate permissions to the Docker socket:
docker: Not healthy: "docker version --format {{.Server.Os}}-{{.Server.Version}}" exit status 1: Got permission denied
while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http:
//%2Fvar%2Frun%2Fdocker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied
sudo chmod 666 /var/run/docker.sock