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

前端 未结 11 1360
你的背包
你的背包 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:53

    docker exec -t -i container_name /bin/bash
    

    Will take you to the containers console.

提交回复
热议问题