Change Docker Swarm Hostname?

I’m just dipping my toes into Docker swarms after using Docker itself for a while, and did a:

docker swarm init

to create a swarm. Now it’s hostname shows simply as:


What I’d like to do now is name it something more recognizable, like “cloud-swarm” (just a generic example).

I’ve done some googling but can’t really come up with anything. Since I just created a new, empty swarm, I don’t mind deleting that swarm and creating a new one with a custom name if that’s what’s necessary, but also don’t know how to do that?

Is it possible to do this?

Source: StackOverflow