2017-10-13 6 views
0

なぜドッキングされたgitlabのランナーをドッキングされたgitlabのciに接続できないのですか? dockerized gitlabランナーバッシュで

Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): 
http://localhost:4311 
Please enter the gitlab-ci token for this runner: 
xxxxxxxxxxxx 
Please enter the gitlab-ci description for this runner: 
[runner]: dockerizedrunner 
Please enter the gitlab-ci tags for this runner (comma separated): 
powershell 
Whether to run untagged builds [true/false]: 
[false]: true 
Whether to lock Runner to current project [true/false]: 
[false]: false 
ERROR: Registering runner... failed     runner=xxxxxx status=couldn't execute POST against http://localhost:4364/api/v4/runners: Post http://localhost:4364/api/v4/runners: dial tcp 127.0.0.1:4311: getsockopt: connection refused 
PANIC: Failed to register this runner. Perhaps you are having network problems 

Iは3つの転送ポート(22,80,443は4311,4312,4313に転送)でこれを試みました。どうすればいいですか?

+0

どのように 'gitlab'と' gitlab-runnet'を実行しますか?いくつかの 'docker-compose'ファイル、またはこのコンテナを実行するためのコマンドを表示できますか? –

+0

実際に私はドッカーはgitlab/gitlab-ceを実行し、ドッカーはgitlab/gitlab-runnerを実行します。その後、私はkitematicでgitlab-ce(22,80,443)のポートを転送し、 – koller23

答えて

2

あなたが実際にgitlab-cilocalhosthttp://localhost:4311を入力容器内部をホストを指します。これはローカルPCのlocalhostではありません。したがってgitlab-cigitlabに接続できませんでした。

docker-composeを使用していくつかのコンテナを編成することをお勧めします。

関連する問題