How to add a static ip address

When I start a docker, I can add --ip to add a specific static IP address.
I need the runner to add to my docker image such an address.
I canot find information on how to do that.

The IP address is always the same, to all runners, it is used only inside the dockerm not to communicate outside.

Same question here. I have a pipeline that depends on DNS pointing to the runner’s IP, so it would be great to be able to specify a runner’s static IP without having to mess with Docker network configurations.