Network aliasing for a service in Swarm


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 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