Add label to runner container

We’re trying to run Gitlab under Rancher. For the most part, it works beautifully. We have several shared runners that are also Docker containers. When a job is sent to a runner, it spawns additional containers, inside which the jobs are being run. The issue is that those spawned containers are not on the managed network that rancher creates and therefore don’t have access to resources that they need to upload artifacts, or access our private registry, which are all on the managed network.

In rancher, adding a container created by Docker to the managed network is as simple as giving that container a label: Unfortunately, for the life of me I cannot figure out how to get this label applied to those containers that the gitlab-runner spawns.

Any ideas? Or is this actually an impossible task.

There’s an open issue here:
and a merge request here:

Hopefully it’ll be added soon.