Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

422
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!