Hello lad
Hello lad

Reputation: 18790

How to bring a running docker container again foreground

I have a docker container running

sudo docker ps -a

result:

CONTAINER ID        IMAGE                COMMAND             CREATED             STATUS                PORTS               NAMES
0cd8d5166717        32bit/ubuntu:14.04   /bin/bash           15 hours ago        Up About an hour                        hadoop-test        

How can I bring this running container again to -it mode and grab the terminal of ubuntu system ?

Upvotes: 23

Views: 10595

Answers (1)

kev
kev

Reputation: 161594

You can attach it:

docker attach 0cd8d5166717

Type Ctrl-PCtrl-Q to detach it again.

Upvotes: 28

Related Questions