列表目录 /var/lib/apt/lists/partial 丢失。- 获取(13:权限被拒绝)

Da *_*Ron 6 docker telegraf

到目前为止,我直接在 Docker 中安装了额外需要的东西,作为“后置参数”。

/bin/sh -c 'apt update && apt install -y smartmontools && apt install -y lm-sensors && apt install -y nvme-cli && apt install -y ipmitool && telegraf'
Run Code Online (Sandbox Code Playgroud)

这不再起作用了。错误消息如标题中所述出现。我如何以 root 身份继续安装这些东西,作为“后参数”?

系统:Unraid - Docker - Telegraf:最新

小智 1

对 Telegraf docker 镜像进行了更改,以便不以 root 用户身份运行 telegraf。不幸的是,这意味着用户无法安装任何新软件。新的 Telegraf 镜像现已发布,允许用户再次在镜像中安装其他软件。Telegraf 本身仍然以telegraf用户/组身份运行,但用户可以以 root 身份运行以配置映像。我们有一篇完整的文章介绍了为什么进行此更改以及对用户的影响。谢谢!