Docker Community Forums

Share and learn in the Docker community.

Network aliasing for a service in Swarm


(Hipposareevil) #1

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.