Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

349
Vistas
Can I update the hostname of a Docker Node?

Currently all my nodes have the name ubuntu-yakkety.

docker node ls

ID                           HOSTNAME        STATUS  AVAILABILITY  MANAGER STATUS
d7rdq4n4dmrkhyz4ov7ldr31e    ubuntu-yakkety  Ready   Active        
iddxyuic586lnla6aw700rdwc    ubuntu-yakkety  Ready   Active        
zxcr1yvveccj4soyh2hsjjebk *  ubuntu-yakkety  Ready   Active        Leader

In order to create better filters that would be great if I could update node's hostname as node-01 node-02 ... node-99

However, I couldn't find any way to accomplish it in the documentation.

1) Is it possible to update the hostname of an existing Docker node?

2) Is it possible giving a name to a node while joining to swarm?

about 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

  1. change hostname: hostname *** or vi /etc/hosts

  2. restart docker: sudo systemctl restart docker

You can see 'Name' user docker info

about 4 years ago · Santiago Trujillo Denunciar

0

This trio works well:

echo '127.0.0.1 <hostname>' | sudo tee -a /etc/hosts
sudo hostnamectl set-hostname <hostname>
sudo systemctl restart docker
about 4 years ago · Santiago Trujillo Denunciar

0

You will have to login each nodes and set the node hostname use command:

sudo hostnamectl set-hostname <hostname>

Once you changed all nodes hostname, go the the manager node and restart your docker, after that you should be good.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda