admin管理员组文章数量:1336214
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
本文标签: GitlabCannot connect to the Docker daemon at unixvarrundockersockStack Overflow
版权声明:本文标题:Gitlab - Cannot connect to the Docker daemon at unix:varrundocker.sock - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742340118a2456430.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论