it's been a couple of weeks now that the previously working CI job in Gitlab is not working anymore. Here's the error
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
This is my CI yaml file
api_server_build_and_deploy:
image: $CI_REGISTRY_IMAGE/ci_deploy
stage: build
services:
- docker:dind
environment:
name: Staging
before_script:
- docker login -u "$DOCKER_REGISTRY_USER" -p "$DOCKER_REGISTRY_PASSWORD" $DOCKER_REGISTRY
script:
# omitted for brevity
and this is the base dockerfile
FROM node:20.10.0-alpine3.19
# installing essential environment
RUN apk add zip
RUN apk add git
RUN apk add docker-cli bash
# also installing angular
RUN npm install -g @angular/[email protected] # may not be needed
# installing ssh
RUN command -v ssh-agent >/dev/null || ( apk add --no-cache openssh )
VOLUME "/var/run/docker.sock:/var/run/docker.sock"
This used to work fine, has anything changed that requires some further config changes? Thanks
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742340119a4425454.html
评论列表(0条)