GitLab Docker Executor #1.7 Host Network

Опубликовано: 19 Февраль 2026
на канале: WildestImagination
817
6

In this video we will see how to use "host" network_mode in GitLab. For this you need to add network_mode="host" parameter in [[runners.docker]] section of config.toml file.

Make sure that you have registered gitlab-runner with docker executor. If this is not the case then [[runners.docker]] section will not available.

Also with network_mode you can utilise any network mode supported by Docker i.e. host, default bridge network mode, user defined bridge network mode etc.

You can get the files that I have used in this video on the below URL,
https://gitlab.com/Nayan.1989/youtube...