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,180 points
225 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,140 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,140 points
195 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,140 points
131 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,140 points
72 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
1,492 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,140 points
52 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,140 points
221 views