How to name services in config.toml

Hi,

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

My gitlab-ci.yml

- name: docker.elastic.co/elasticsearch/elasticsearch:5.6.9
  alias: elasticsearch
- name: microsoft/mssql-server-linux
  alias: db

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

--docker-services="docker.elastic.co/elasticsearch/elasticsearch:5.6.9" \
--docker-services="microsoft/mssql-server-linux" \

But how do I add the aliases or address them?

Thanks in advance,
Thorsten

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 [[runners.docker.services]] section being written to the config.toml file ?