Network aliasing for a service in Swarm

Howdy,

With containers it’s easy to create a network alias via “–network-alias”, how do we do this with a service in a swarm?
I see from https://github.com/docker/docker/issues/24787 that it appears to be available via the API, but I am unable to find any documentation/examples. I don’t need the cmdline, but a docker-py or REST example would be awesome.

1 Like