How to bring a running docker container again foreground

I have a docker container running

sudo docker ps -a


  • Docker Compose: Change env variables
  • How to manage multiple backend stacks for development?
  • How to run AWS ECS Task overriding environment variables
  • Docker user Permission denied on accessing folder in container
  • Backup stateful docker volume
  • Spring boot app location inside docker container
  • 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 ?

  • Can't connect to Mongo DB in .Net Core api
  • Docker issue commands to an app inside container?
  • How can I numactl membind a process inside Docker container?
  • How to connect docker's container with pipeline
  • How to run ansible script inside a docker container
  • Error starting docker containers
  • One Solution collect form web for “How to bring a running docker container again foreground”

    You can attach it:

    docker attach 0cd8d5166717

    Type Ctrl-PCtrl-Q to detach it again.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.