How to enter in a Docker container already running with a new TTY

前端 未结 11 1382
你的背包
你的背包 2020-11-29 14:20

I have a container that is running the Apache service in the foreground. I would like to be able to access the container from another shell in order to \"poke around\" insid

11条回答
  •  余生分开走
    2020-11-29 14:51

    With docker 1.3, there is a new command docker exec. This allows you to enter a running container:

    docker exec -it [container-id] bash
    

提交回复
热议问题