dongshie8450 2017-12-22 18:25
浏览 254

码头工人是否在内部使用chroot,unshare,nsenter等系统调用或lxc周围的包装器

I was going through an article to build containers from scratch without using docker just by making use of linux system calls like chroot, unshare, nsenter, etc.

Does docker internally a wrapper around these system calls, it seems like docker exec is not using nsenter as per this answer

If docker is using these calls which golang binary is it using to have these system calls.

Or docker is a wrapper around lxc but it don't seems to me as per this answer

Can anyone point me out the exact low level stuff (system calls/lxc,etc) that docker is currently using to build a container.

  • 写回答

1条回答 默认 最新

  • douhan1992 2017-12-22 18:41
    关注

    Docker is not a wrapper around LXC. Back in the old days it did use an LXC-based mechanism for starting containers, but that was replaced by a native implementation.

    As Docker is an open source project, you can see exactly what it's doing by browsing through the source (which has since been renamed "moby").

    The actual creation of containers is handled by the libcontainer component.

    评论

报告相同问题?

悬赏问题

  • ¥15 Oracle触发器记录修改前后的字段值
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器