docker attach - turn tty false to tty true

I am running a docker container and on inspecting it. I find

"Config": { "Hostname": "amb1.service.consul", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "Tty": false, "OpenStdin": false}

Is there any way to attach to this container interactively?

Upvotes: 0

Views: 921

Answers (1)

German
German

Reputation: 1705

To be able to interact with the container that is already running. The command is:

docker exec -it [name_container] bash

Some base image doesnt have bash, in this case run:

docker exec -it [name_container] sh

Upvotes: 3

Related Questions