How to get the hostname of the manager node in the Docker swarm

0 votes

Hi Team,

I have one Docker swarm cluster. I am not able to find the hostname of the manager node. How can I find the hostname easily?

Dec 24, 2020 in Docker by akhtar
• 38,260 points
4,184 views

1 answer to this question.

0 votes

Hi@akhtar,

You can find the manager hostname using the docker node ls command.

$ docker node ls

ID                           HOSTNAME  STATUS  AVAILABILITY  MANAGER STATUS
dxn1zf6l61qsb1josjja83ngz *  manager1  Ready   Active        Leader
answered Dec 24, 2020 by MD
• 95,460 points

Related Questions In Docker

0 votes
1 answer

How to change node availability in docker swarm?

Hi@akhtar, You can change the node availability according to ...READ MORE

answered Dec 28, 2020 in Docker by MD
• 95,460 points
3,619 views
+1 vote
1 answer

How to add or remove label metadata in the swarm node?

Node labels provide a flexible method of ...READ MORE

answered Dec 28, 2020 in Docker by MD
• 95,460 points
3,991 views
0 votes
1 answer

How to get logs in Docker Swarm?

Hi@akhtar, You can get the logs of your ...READ MORE

answered Dec 28, 2020 in Docker by MD
• 95,460 points
1,533 views
+2 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,932 views
0 votes
1 answer

How to add one worker node to the Docker swarm?

Hi@akhtar, You will get one token when you ...READ MORE

answered Dec 24, 2020 in Docker by MD
• 95,460 points
1,196 views
0 votes
1 answer

How to remove a worker node from the docker swarm cluster?

Hi@akhtar, To remove a worker node from the ...READ MORE

answered Dec 24, 2020 in Docker by MD
• 95,460 points
5,608 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP