Is it possible to start a shell session in a running container (without ssh)

后端 未结 15 1206
滥情空心
滥情空心 2020-11-29 14:33

I was naively expecting this command to run a bash shell in a running container :

docker run \"id of running container\" /bin/bash

it look

15条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 15:12

    No. This is not possible. Use something like supervisord to get an ssh server if that's needed. Although, I definitely question the need.

提交回复
热议问题