MetaX-Tech Developer Forum 论坛首页
  • 沐曦开发者
search
Sign in
  • chevron_right Threads
  • label 产品&运维
  • label 已解决

在k8s中container-runtime会自动去掉docker中已有Insecure Registries

mentwtang
2026年6月4日
chat_bubble_outline 13
  • link
    mentwtang
    Members 7 posts
    2026年6月4日 17:09 2026年6月4日 17:09
    link

    使用沐曦C500,当前环境为:
    mx-smi version: 2.2.3

    =================== MetaX System Management Interface Log ===================
    Timestamp : Thu Jun 4 16:58:25 2026

    Attached GPUs : 8
    +---------------------------------------------------------------------------------+
    | MX-SMI 2.2.3 Kernel Mode Driver Version: 3.4.4 |
    | MACA Version: 2.32.0.6 BIOS Version: 1.24.3.0 |
    |------------------------------------+---------------------+----------------------+
    | GPU NAME | Bus-id | GPU-Util |
    | Temp Pwr:Usage/Cap | Memory-Usage | |
    |====================================+=====================+======================|
    | 0 MetaX C500 | 0001:06:00.0 | 0% |
    | 33C 36W / 350W | 863/65536 MiB | |
    +------------------------------------+---------------------+----------------------+
    | 1 MetaX C500 | 0001:07:00.0 | 0% |
    | 33C 38W / 350W | 863/65536 MiB | |
    +------------------------------------+---------------------+----------------------+
    | 2 MetaX C500 | 0001:08:00.0 | 0% |
    | 31C 36W / 350W | 863/65536 MiB | |
    +------------------------------------+---------------------+----------------------+
    | 3 MetaX C500 | 0001:09:00.0 | 0% |
    | 34C 36W / 350W | 863/65536 MiB | |
    +------------------------------------+---------------------+----------------------+
    | 4 MetaX C500 | 0001:0a:00.0 | 0% |
    | 35C 36W / 350W | 863/65536 MiB | |
    +------------------------------------+---------------------+----------------------+
    | 5 MetaX C500 | 0001:0b:00.0 | 0% |
    | 37C 39W / 350W | 863/65536 MiB | |
    +------------------------------------+---------------------+----------------------+
    | 6 MetaX C500 | 0001:0c:00.0 | 0% |
    | 36C 38W / 350W | 863/65536 MiB | |
    +------------------------------------+---------------------+----------------------+
    | 7 MetaX C500 | 0001:0d:00.0 | 0% |
    | 41C 38W / 350W | 863/65536 MiB | |
    +------------------------------------+---------------------+----------------------+

    +---------------------------------------------------------------------------------+
    | Process: |
    | GPU PID Process Name GPU Memory |
    | Usage(MiB) |
    |=================================================================================|
    | no process found |
    +---------------------------------------------------------------------------------+

    k8s为1.23.17,docker 23.0.1 操作系统麒麟V10
    在/etc/docker/daemon.json配置中有以下信息:
    "insecure-registries": [
    "192.168.50.181:5001"
    ],
    使用docker info 信息也能看到
    Insecure Registries:
    192.168.50.181:5001
    但是安装了沐曦的k8s设备插件,在container-runtime启动后,在看docker info信息时候Insecure Registries信息已经改变,如下:
    Insecure Registries:
    127.0.0.0/8

    这样导致我不能拉取仓库镜像,请问如何解决该问题

  • arrow_forward

    Thread has been moved from 编程.

    • By shuai_chen on 2026年6月4日 17:11.
  • link
    shuai_chen
    Members 650 posts
    2026年6月4日 17:12 2026年6月4日 17:12
    link

    尊敬的开发者您好,请重新修改配置文件

  • link
    mentwtang
    Members 7 posts
    2026年6月4日 17:14 2026年6月4日 17:14
    link

    修改docker的配置文件吗?请给出一些具体信息,谢谢!

  • link
    shuai_chen
    Members 650 posts
    2026年6月4日 17:17 2026年6月4日 17:17
    link

    尊敬的开发者您好,请重新修改Docker配置文件

  • link
    mentwtang
    Members 7 posts
    2026年6月4日 17:19 2026年6月4日 17:19
    link

    另外,实际/etc/docker/daemon.json文件中的insecure-registry信息并没有修改,只是docker的运行环境变了,而且修改insecure-registry会需要重新启动docker

  • link
    shuai_chen
    Members 650 posts
    2026年6月4日 17:25 2026年6月4日 17:25
    link

    尊敬的开发者您好,请重启docker尝试

  • link
    mentwtang
    Members 7 posts
    2026年6月4日 17:27 2026年6月4日 17:27
    link

    感谢您这么快的回复!我重新启动docker会导致k8s的kubelet要重新启动,又导致container-runtime重新启动,从而又把Insecure Registries设置的信息覆盖

  • link
    shuai_chen
    Members 650 posts
    2026年6月4日 17:29 2026年6月4日 17:29
    link

    尊敬的开发者您好,请先把镜像拉下来,再进行后续

  • link
    mentwtang
    Members 7 posts
    2026年6月4日 17:31 2026年6月4日 17:31
    link

    有什么办法避免让container-runtime对容器重新配置吗?解决根本问题。或者重新配置加上我原来的nsecure Registries信息

  • link
    shuai_chen
    Members 650 posts
    2026年6月4日 17:38 2026年6月4日 17:38
    link

    尊敬的开发者您好,请参考developer.metax-tech.com/api/client/document/preview/1059/k8s/03_component.html#150xylgkp8n41
    ,运行时Pod会自动修改宿主机上的高级容器运行时配置。

  • link
    mentwtang
    Members 7 posts
    2026年6月8日 14:27 2026年6月8日 14:27
    link

    这篇文章中也没有如何配置避免对docker的配置进行修改,问题依旧,还是没有解决,请提供明确的配置方式,谢谢!

  • link
    shuai_chen
    Members 650 posts
    2026年6月8日 15:44 2026年6月8日 15:44
    link

    尊敬的开发者您好,请参考developer.metax-tech.com/api/client/document/preview/1059/k8s/03_component.html#150xylgkp8n41
    ,运行时Pod会自动修改宿主机上的高级容器运行时配置,请先自行准备好镜像。

  • link
    mentwtang
    Members 7 posts
    2026年6月8日 15:54 2026年6月8日 15:54
    link

    您好,感谢回答,但是没有太明白这句话的意思?“若要启用私有运行时环境,运行时Pod会自动修改宿主机上的高级容器运行时配置。请确保这些配置项处于正常状态,避免影响运行时功能。”,
    现在我的诉求是怎么避免来修改容器运行时的配置,这些配置项都是正常状态,但是在container-runtime pod起来后,就不正常了,已经影响到正常运行了。

  • link
    shuai_chen
    Members 650 posts
    2026年6月8日 16:00 2026年6月8日 16:00
    link

    尊敬的开发者您好,请在container-runtime pod运行之前完成拉取镜像

  • arrow_forward

    Thread has been moved from 解决中.

    • By shuai_chen on 2026年6月15日 10:25.
arrow_upward Go to top
  • 沐曦开发者论坛
powered by misago