我是码头工人的新手。我使用以下命令运行 gitlab ce 容器:
docker run --detach --hostname localhost --publish 443:443 --publish 80:80 --name gitlab --restart always gitlab/gitlab-ce:latest
Run Code Online (Sandbox Code Playgroud)
这个容器工作得很好
我使用以下命令运行 gitlab-runner 容器:
docker run -d --name gitlab-runner --restart always gitlab/gitlab-runner:latest
Run Code Online (Sandbox Code Playgroud)
我的问题是当我想注册 gitlab-runner 时,跑步者问我:
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
Run Code Online (Sandbox Code Playgroud)
我的回答是:http://localhost:80/但它给了我错误:
ERROR: Registering runner... failed runner=K8trLPJx status=couldn't execute POST against http://localhost:80/api/v4/runners: Post http://localhost:80/api/v4/runners: dial tcp 127.0.0.1:80: connect: connection refused
PANIC: Failed to register this runner. Perhaps you are having network problems
Run Code Online (Sandbox Code Playgroud)
2 个容器在我的 Windows 10 电脑上运行
我不想在我的电脑上本地运行 …