[root@gitlab ~]# gitlab-runner register Runtime platform arch=amd64 os=linux pid=12329 revisinotallow=97153df7 versinotallow=12.9.1 Running in system-mode. # 输入gitlab的url地址 Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): http://gitlab.xxxxxx.com/ # 输入注册的token Please enter the gitlab-ci token for this runner: 13o3h7ZEiUVXGJfZe5Cy # 输入对这个runner的描述,同时也是次runner的名字 Please enter the gitlab-ci description for this runner: [gitlab.xxxxxx.com]: test_runner # 输入runner的tag Please enter the gitlab-ci tags for this runner (comma separated): test Registering runner... succeeded runner=K6cy5i3y # 输入runner的executor Please enter the executor: docker+machine, docker-ssh+machine, shell, docker, docker-ssh, parallels, ssh, virtualbox, kubernetes, custom: docker # 这里选择docker,需要制定默认的docker image来运行job(可以在.gitlab-ci.yml里修改需要用的image) Please enter the default Docker image (e.g. ruby:2.6): docker:19.03.13 Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!