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 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?
  • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?
  • ¥15 ubuntu系统下挂载磁盘上执行./提示权限不够
  • ¥15 Arcgis相交分析无法绘制一个或多个图形
  • ¥15 关于#r语言#的问题:差异分析前数据准备,报错Error in data[, sampleName1] : subscript out of bounds请问怎么解决呀以下是全部代码:
  • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误