Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

卡了24小时了,有没有了解docker和gitlab-runner的大佬在?

$
0
0
sudo docker run -d \
--name gitlab-runner \
--restart always \
-v /usr/local/gitlab-runner/config:/etc/gitlab-runner \
-v /usr/local/gitlab-runner/run/docker.sock:/var/run/docker.sock \
-v /usr/local/node/client-admin:/etc/client-admin \
gitlab/gitlab-runner:latest
docker exec -it gitlab-runner gitlab-ci-multi-runner register \
  --non-interactive \
  --url https://gitlab.com/ \
  --registration-token "xxxxxxxxxxx" \
  --tag-list=ci \
  --description "ci" \
  --docker-pull-policy="if-not-present" \
  --executor=docker \
  --docker-privileged=true \
  --docker-image "node:10.16.3" \
  --docker-volumes /usr/local/gitlab-runner/run/docker.sock:/var/run/docker.sock \
  --docker-volumes /usr/local/node/client-admin:/etc/client-admin

这个是我的配置,实际项目中,无法拿到挂载目录。 脑壳都试破了,不知道哪里出了问题。


Viewing all articles
Browse latest Browse all 14821

Trending Articles