docker


docker run --rm --name=node-runner -it -v /fy/soft/gitlab/runner/node/:/etc/gitlab-runner gitlab/gitlab-runner:latest register


--url http://10.50.192.83/ --registration-token GR1348941t24ySvpjMcCsfSFKezy1




sudo docker run -d --name gitlab-runner --restart always \
-v /home/gitlab-runner/config:/etc/gitlab-runner \
-v /var/run/docker.sock:/var/run/docker.sock \
gitlab/gitlab-runner:latest



docker run --rm -v /fy/soft/gitlab/runner/config:/etc/gitlab-runner gitlab/gitlab-runner register \
--non-interactive \
--executor "docker" \
--docker-image alpine:latest \
--url "http://10.50.192.83/" \
--registration-token "GR1348941t24ySvpjMcCsfSFKezy1" \
--description "group-node-runner" \
--tag-list "fyjyc" \
--run-untagged="true" \
--locked="false" \
--access-level="not_protected"

docker exec gitlab-runner gitlab-runner register -n \
--url http://10.50.192.83:8070/ \
--registration-token GR1348941z4ztEzoFZT3wiFbDUy9R \
--tag-list fyjyc \
--executor docker \
--docker-image maven:3.8.1 \
--docker-volumes /root/.m2:/root/.m2 \
--docker-volumes /root/.npm:/root/.npm \
--docker-volumes /var/run/docker.sock:/var/run/docker.sock \
--description "maven_3.8.1"