Docker exec versus nsenter: Any gotchas?

后端 未结 2 619
渐次进展
渐次进展 2020-12-19 02:07

I\'ve been using nsenter for the last few months to get a shell running on a container for debugging purposes. I have heard about and used docker exec which was introduced i

2条回答
  •  感情败类
    2020-12-19 02:50

    That is not entirely clear right now. But I would support the view that since docker exec is the official way, to go with that. The author of nsenter actually recommends using docker exec. If you encounter any drawbacks, he encourages you to report them though.

提交回复
热议问题