86 Star 468 Fork 272

GVPopenEuler / iSulad

 / 详情

貌似当前 iSulad 是不支持 randisk 的,而且也不支持给 runc 传参

已完成
需求
创建于  
2022-08-15 12:20
  1. 默认的 lcr runtime没有找到类似 DOCKER_RAMDISK=true 的参数,故选择了 runc,欲传参 --no-pivot,配置如下:
    "default-runtime": "runc"
    "runtimes": {
    "runc": {
    "path": "/usr/bin/runc",
    "runtime-args": [
    "--no-pivot"
    ]
    }
    }
    但是在 get_runtime_cmd 和 runtime_exec_param_init 这里构造的参数顺序是错的,变成 runc --no-pivot cmd,runc 会不识别报错。
    此外,针对 --no-pivot 参数,runc 也只有 create 和 run 生效,其他的如果指定了也会报错。

由此看出,当前 iSulad 是不支持 randisk 的,而且也不支持给 runc 传参。
不知道是不是我搞错了什么,请各位大佬有空指教下 :flushed:

不关联里程碑

评论 (10)

Alost 创建了需求

Hi alost, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: iSulad, and any of the maintainers: @haomintsai , @lifeng_isula , @haozi007 , @jingxiaolu , @JingWoo

openeuler-ci-bot 添加了
 
sig/iSulad
标签
haozi007 负责人设置为zhangxiaoyu

DOCKER_RAMDISK
The “DOCKER_RAMDISK” variable makes Docker work when root is on a ramdisk.

tell native driver not tues pivot root

$ export DOCKER_RAMDISK=true

What you need to know:

If set, this will disable ‘pivot_root’.
If set, Docker uses “chroot.”
Read this discussion of how Docker could be run in memory. (@StackOverflow) Here’s a handy list of commands from TekSlate. (@Tekslate)

runtime-args中设置的参数将作用于runc的所有子命令,而不会仅传递给runc的特定子命令,目前iSulad暂时还不支持给runc的特定子命令传参。

get_runtime_cmd 和 runtime_exec_param_init 这里构造的参数顺序对于 runc 是错的,变成 runc --no-pivot start/run/xxx,runc 会不识别报错。

这里是不能够将--no-pivot参数放在daemon.json里面传给runc的。runtime-args是对整个runtime的参数配置而非对start/run/xx这些子命令的配置。例如针对kata runtime的配置--kata-config=xxx,目前也仅支持安全容器kata的自定义运行时

目前不支持对runc参数配置,可以考虑加入路标

@zhangxiaoyu you can't close an issue unless you are the author of it or a collaborator.

openeuler-ci-bot 任务状态新建 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5329419 openeuler ci bot 1632792936 5595769 duguhaotian 1605235330 11007363 taotao sauce 1686811291
C
1
https://gitee.com/openeuler/iSulad.git
git@gitee.com:openeuler/iSulad.git
openeuler
iSulad
iSulad

搜索帮助