带有Portainer.io的工业Raspberry Pi:文件许可问题,已丢弃应用程序

发布于 2025-01-27 09:02:31 字数 577 浏览 5 评论 0原文

我已经从ubuntu 18构建了一个图像(docker buildx),该图像存储在焦油中,使用portainer上传在portainer上(在RPI上运行)

,我使用yaml文件创建一个堆栈,我得到了“部署错误”,但是容器 在下面创建

,Composer文件内容:

version: '2'
services:
    sda:
        image: <out image>
        network_mode: "host"
        container_name: "sda4"
        volumes:
          - virtual_sda4:/opt/<company>/<application>
        stdin_open: true

运行容器我们的应用程序已倾倒。 与Console作为root用户连接,列表文件的结果很奇怪: 所有文件均具有“未定义”权限(问号而不是RWX) 这似乎是一个许可问题。

(*)stdin_open:true:用于使容器保持活力,因为该应用程序已倾倒。

任何想法都受到赞赏 谢谢 洛伦佐

I've built an image (docker buildx) from an ubuntu 18, stored to tar, uploaded on Portainer (running on RPI)

Using Portainer, I create a stack with yaml file, and I get a "deployment error", but the container is created

Below, the composer file content:

version: '2'
services:
    sda:
        image: <out image>
        network_mode: "host"
        container_name: "sda4"
        volumes:
          - virtual_sda4:/opt/<company>/<application>
        stdin_open: true

Running the container our app is dumped.
Connecting with console as root user, listing files has a strange result:
all files have "undefined" permissions (question marks instead of rwx)
It seems a permission issue.

(*) stdin_open: true: used to keep alive the container, because the app is dumped.

Any idea is appreciated
Thanks
Lorenzo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠檬色的秋千 2025-02-03 09:02:31

只是此主题的更新。该问题链接到用于构建和部署图像的不同Docker版本。构建器是20。,RPI上的版本是18。。更新由董事会Integratori提供的RPI上的版本解决了问题。

希望这对他人有用。
洛伦佐

Just an update on this topic. The problem was linked to different docker version used for building and deploying the images. The builder was 20., the version on RPI was 18.. Updating the version on RPI, provided by the board integratori, solved the issue.

Hoping this is useful to others.
Lorenzo

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文