Dockerized Gitlab-runner can't find Gitlab containerContinuous Integration runner has access to production...
Is there a frame of reference in which I was born before I was conceived?
What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?
Auto Insert date into Notepad
Reason Why Dimensional Travelling Would be Restricted
A "strange" unit radio astronomy
How to properly claim credit for peer review?
What do the pedals on grand pianos do?
Are small insurances worth it
Difference between 'stomach' and 'uterus'
It took me a lot of time to make this, pls like. (YouTube Comments #1)
What if I store 10TB on azure servers and then keep the vm powered off?
Hacker Rank: Array left rotation
Did 5.25" floppies undergo a change in magnetic coating?
How to approximate rolls for potions of healing using only d6's?
Second-rate spelling
What is the wife of a henpecked husband called?
Where is the fallacy here?
Replacement ford fiesta radiator has extra hose
How to tighten battery clamp?
How to add multiple differently colored borders around a node?
Did Amazon pay $0 in taxes last year?
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Easy code troubleshooting in wordpress
You'll find me clean when something is full
Dockerized Gitlab-runner can't find Gitlab container
Continuous Integration runner has access to production serverConnect GitLab and Gitlab runner, both in DockerGitlab runner in docker with docker executordocker & portainer - use it to create containerUsing Docker Swarm to build an reverse proxy networkhow to set the image volume in gitlab-runner with docker executorHow to debug why Pure FTPd cannot bind to an IP address?How to setup local port range in a gitlab-runner container?Gitlab Runner installation Docker in DockerGoogle Compute Engine App nothing listening on ports 80 and 443
Beginner here :)
I’ve set up a Gitlab instance on my company’s local network.
It is hosted in a docker container, running on a dedicated server, whose hostname is “devserver”
This Gitlab instance is reachable via “https://mycompanygit”, because the network DNS is set to redirect mycompanygit to the local ip of devserver.
On devserver, there is another container running, a nginx reverse-proxy, which redirects http and https requests for mycompanygit to the gitlab container.
Now I’d like to add a third container, a Gitlab-runner instance.
So I run the following command, taken from here.
docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner --name gitlab-runner gitlab/gitlab-runner register
--non-interactive
--executor "docker"
--docker-image alpine:3
--url "https://mycompanygit"
--registration-token "MY_REGISTRATION_TOKEN"
--description "docker-runner"
--tag-list "docker,aws"
--run-untagged
--locked="false"
I get:
ERROR: Registering runner... failed runner=i3ygCNvW status=couldn't execute POST against https://mycompanygit/api/v4/runners: Post https://mycompanygit/api/v4/runners: dial tcp: lookup mycompanygit on 8.8.8.8:53: no such host
PANIC: Failed to register this runner. Perhaps you are having network problems
How do I get the Gitlab-runner to see the Gitlab instance ? I don’t even know if it’s related to Docker or Gitlab ?
Also: the gitlab and nginx instances have been setup together with docker-compose, does that matter?
Thanks a lot :) Please tell me if I’m not clear, I’ll try to reformulate
docker gitlab docker-compose
add a comment |
Beginner here :)
I’ve set up a Gitlab instance on my company’s local network.
It is hosted in a docker container, running on a dedicated server, whose hostname is “devserver”
This Gitlab instance is reachable via “https://mycompanygit”, because the network DNS is set to redirect mycompanygit to the local ip of devserver.
On devserver, there is another container running, a nginx reverse-proxy, which redirects http and https requests for mycompanygit to the gitlab container.
Now I’d like to add a third container, a Gitlab-runner instance.
So I run the following command, taken from here.
docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner --name gitlab-runner gitlab/gitlab-runner register
--non-interactive
--executor "docker"
--docker-image alpine:3
--url "https://mycompanygit"
--registration-token "MY_REGISTRATION_TOKEN"
--description "docker-runner"
--tag-list "docker,aws"
--run-untagged
--locked="false"
I get:
ERROR: Registering runner... failed runner=i3ygCNvW status=couldn't execute POST against https://mycompanygit/api/v4/runners: Post https://mycompanygit/api/v4/runners: dial tcp: lookup mycompanygit on 8.8.8.8:53: no such host
PANIC: Failed to register this runner. Perhaps you are having network problems
How do I get the Gitlab-runner to see the Gitlab instance ? I don’t even know if it’s related to Docker or Gitlab ?
Also: the gitlab and nginx instances have been setup together with docker-compose, does that matter?
Thanks a lot :) Please tell me if I’m not clear, I’ll try to reformulate
docker gitlab docker-compose
add a comment |
Beginner here :)
I’ve set up a Gitlab instance on my company’s local network.
It is hosted in a docker container, running on a dedicated server, whose hostname is “devserver”
This Gitlab instance is reachable via “https://mycompanygit”, because the network DNS is set to redirect mycompanygit to the local ip of devserver.
On devserver, there is another container running, a nginx reverse-proxy, which redirects http and https requests for mycompanygit to the gitlab container.
Now I’d like to add a third container, a Gitlab-runner instance.
So I run the following command, taken from here.
docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner --name gitlab-runner gitlab/gitlab-runner register
--non-interactive
--executor "docker"
--docker-image alpine:3
--url "https://mycompanygit"
--registration-token "MY_REGISTRATION_TOKEN"
--description "docker-runner"
--tag-list "docker,aws"
--run-untagged
--locked="false"
I get:
ERROR: Registering runner... failed runner=i3ygCNvW status=couldn't execute POST against https://mycompanygit/api/v4/runners: Post https://mycompanygit/api/v4/runners: dial tcp: lookup mycompanygit on 8.8.8.8:53: no such host
PANIC: Failed to register this runner. Perhaps you are having network problems
How do I get the Gitlab-runner to see the Gitlab instance ? I don’t even know if it’s related to Docker or Gitlab ?
Also: the gitlab and nginx instances have been setup together with docker-compose, does that matter?
Thanks a lot :) Please tell me if I’m not clear, I’ll try to reformulate
docker gitlab docker-compose
Beginner here :)
I’ve set up a Gitlab instance on my company’s local network.
It is hosted in a docker container, running on a dedicated server, whose hostname is “devserver”
This Gitlab instance is reachable via “https://mycompanygit”, because the network DNS is set to redirect mycompanygit to the local ip of devserver.
On devserver, there is another container running, a nginx reverse-proxy, which redirects http and https requests for mycompanygit to the gitlab container.
Now I’d like to add a third container, a Gitlab-runner instance.
So I run the following command, taken from here.
docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner --name gitlab-runner gitlab/gitlab-runner register
--non-interactive
--executor "docker"
--docker-image alpine:3
--url "https://mycompanygit"
--registration-token "MY_REGISTRATION_TOKEN"
--description "docker-runner"
--tag-list "docker,aws"
--run-untagged
--locked="false"
I get:
ERROR: Registering runner... failed runner=i3ygCNvW status=couldn't execute POST against https://mycompanygit/api/v4/runners: Post https://mycompanygit/api/v4/runners: dial tcp: lookup mycompanygit on 8.8.8.8:53: no such host
PANIC: Failed to register this runner. Perhaps you are having network problems
How do I get the Gitlab-runner to see the Gitlab instance ? I don’t even know if it’s related to Docker or Gitlab ?
Also: the gitlab and nginx instances have been setup together with docker-compose, does that matter?
Thanks a lot :) Please tell me if I’m not clear, I’ll try to reformulate
docker gitlab docker-compose
docker gitlab docker-compose
asked Aug 30 '18 at 13:59
MunshineMunshine
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The GitLab Runner cannot resolve an ip for the the GitLab instance because it is using Google's DNS for domain name resolution, and Google's DNS knows nothing about mycompanygit
. See the end of your ERROR line:
... lookup mycompanygit on 8.8.8.8:53: no such host
The simplest solution would be to put in the ip address you used in your company DNS for the host mycompanygit
into the GitLab-runner config and not bother with DNS for the runner.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f928714%2fdockerized-gitlab-runner-cant-find-gitlab-container%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The GitLab Runner cannot resolve an ip for the the GitLab instance because it is using Google's DNS for domain name resolution, and Google's DNS knows nothing about mycompanygit
. See the end of your ERROR line:
... lookup mycompanygit on 8.8.8.8:53: no such host
The simplest solution would be to put in the ip address you used in your company DNS for the host mycompanygit
into the GitLab-runner config and not bother with DNS for the runner.
add a comment |
The GitLab Runner cannot resolve an ip for the the GitLab instance because it is using Google's DNS for domain name resolution, and Google's DNS knows nothing about mycompanygit
. See the end of your ERROR line:
... lookup mycompanygit on 8.8.8.8:53: no such host
The simplest solution would be to put in the ip address you used in your company DNS for the host mycompanygit
into the GitLab-runner config and not bother with DNS for the runner.
add a comment |
The GitLab Runner cannot resolve an ip for the the GitLab instance because it is using Google's DNS for domain name resolution, and Google's DNS knows nothing about mycompanygit
. See the end of your ERROR line:
... lookup mycompanygit on 8.8.8.8:53: no such host
The simplest solution would be to put in the ip address you used in your company DNS for the host mycompanygit
into the GitLab-runner config and not bother with DNS for the runner.
The GitLab Runner cannot resolve an ip for the the GitLab instance because it is using Google's DNS for domain name resolution, and Google's DNS knows nothing about mycompanygit
. See the end of your ERROR line:
... lookup mycompanygit on 8.8.8.8:53: no such host
The simplest solution would be to put in the ip address you used in your company DNS for the host mycompanygit
into the GitLab-runner config and not bother with DNS for the runner.
answered 5 hours ago
yourcomputergeniusyourcomputergenius
585
585
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f928714%2fdockerized-gitlab-runner-cant-find-gitlab-container%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown