Docker exec versus nsenter: Any gotchas?

随声附和 提交于 2019-11-29 10:04:55

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.

docker exec versus nsenter

There are differences between nsenter and docker exec; namely, nsenter doesn't enter the cgroups, and therefore evades resource limitations. The potential benefit of this would be debugging and external audit, but for remote access, docker exec is the current recommended approach.

Only works on Intel 64 bits platforms. Arguably, this is the only officially supported platform for Docker; so it's not a big deal.

nsenter still needs to run from the host; it cannot run inside a container (yet).

ref: https://github.com/jpetazzo/nsenter/blob/master/README.md

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!