Skip to content

Commit d18db5a

Browse files
authored
Update gitlab_ci_demo.md
1 parent f6cb2b5 commit d18db5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

05_testing_and_ci/gitlab_ci_demo.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ You can get the IP from the [Instances view](https://portal.bw-cloud.org/project
3737

3838
```bash
3939
sudo docker run -d --name gitlab-runner --restart always \
40+
--network host \
41+
-e GODEBUG="netdns=go+ipv6" \
4042
-v /srv/gitlab-runner/config:/etc/gitlab-runner \
4143
-v /var/run/docker.sock:/var/run/docker.sock \
4244
gitlab/gitlab-runner:latest
4345
```
4446

4547
- `docker run -d --name gitlab-runner --restart always` runs the container in the background (`-d` means detached) names it `gitlab-runner` and makes sure that it always runs. The container is automatically restarted once it stops/crashes. If you want to stop the container, you have to stop it manually (`docker container stop`).
48+
- The `--network host` and `-e GODEBUG="netdns=go+ipv6"` are needed in this IPv6-only VM (see section below).
4649
- `-v /srv/gitlab-runner/config:/etc/gitlab-runner` mounts the directory `/srv/gitlab-runner/config` into the container.
4750
- `-v /var/run/docker.sock:/var/run/docker.sock` mounts important Docker files into the container such that the container can start other containers (for pipelines).
4851
- `gitlab/gitlab-runner:latest` is the GitLab Runner image used from Docker Hub.
@@ -76,8 +79,6 @@ sudo docker run --rm -it \
7679
- Verify that there is now a runner in the repo settings
7780
- Verify that pipeline now ran
7881

79-
The `--network host` and `-e GODEBUG="netdns=go+ipv6"` are needed in this IPv6-only VM (see section below).
80-
8182
- More information:
8283
- [Executors and their abilities](https://docs.gitlab.com/runner/executors/)
8384
- [Registering runners](https://docs.gitlab.com/runner/register/index.html#docker).

0 commit comments

Comments
 (0)