How to name services in config.toml


I’d like to move my services from gitlab-ci.yml to config.toml

My gitlab-ci.yml

- name:
  alias: elasticsearch
- name: microsoft/mssql-server-linux
  alias: db

I’d like to set them up during gitlab-runner register like

--docker-services="" \
--docker-services="microsoft/mssql-server-linux" \

But how do I add the aliases or address them?

Thanks in advance,

Looking for the same thing - how to define services when registering a runner using command-line arguments. Given this was asked 2 years ago I guess it isn’t supported ?

Is there a way to specify arguments to register that will result in a [[]] section being written to the config.toml file ?