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

420
Vistas
Docker linux: How to start multiple console/terminals for one running container?

I'm using below command to run docker,

docker run -it centos:6.5 bash

It starts bash with root user, no problem.

But I wish to have multiple terminals to connect to it and do different things. I found attach command will only duplicate a terminal window which all input/output will be propagated. It doesn't solve my requirement.

How to do this?

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

0

Once the container is running, you should be able to use docker exec to run an additional Bash session in the same container.

When your first container is running, use docker ps to find its Container ID (the first column in the docker ps output), e.g. 4a7afcdeb729, then run the following:

docker exec -it 4a7afcdeb729 bash

This should open a new terminal session in the container.

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