【问题标题】:docker-compose.yml for DECIDIM don't workDECIDIM 的 docker-compose.yml 不工作
【发布时间】:2023-02-06 02:21:40
【问题描述】:

我想用 docker compose 创建一个 DECIDIM 的 docker 镜像,但是当我在 docker 上安装它时,它给了我以下错误:

" 调用错误 远程方法“docker-start-container”:错误:(HTTP 代码 400) 意外 - 无法创建 shim 任务:OCI 运行时创建失败:runc 创建失败:无法启动容器进程:执行: “/code/vendor/hello-world.sh”:stat /code/vendor/hello-world.sh:没有这样的 文件或目录:未知”

因为你是这个应用程序的用户,我直接问你,如何解决它。

https://github.com/decidim/docker/blob/master/docker-compose.yml

PS:我在 Windows 上运行并且只在 Windows 上运行。我可以使用 powershell 和 WSL。我在 Github 上提出一个问题:https://github.com/decidim/docker/issues/101

我尝试使用 docker 通过 docker compose 创建一个 docker 镜像。但它不起作用。

【问题讨论】:

    标签: docker docker-compose


    【解决方案1】:

    开发者的回答是:

    您面临的错误与 Windows 相关。

    尝试在 CMD 终端中运行以下命令集以在 Windows 上配置 git:

    git config --global core.fileMode false git config --global core.autocrlf true

    在那之后 :

    混帐克隆https://github.com/decidim/docker.git 找到 ./docker -type f -print0 | xargs -0 -n 1 -P 4 dos2unix

    在那之后,一切都应该没问题,所以你可以运行:

    光盘码头工人 码头工人组成

    但 xargs 和 dos2unix 它与 Windows 命令提示符不兼容。

    【讨论】:

      猜你喜欢
      • 2019-03-01
      • 2022-09-29
      • 2022-01-05
      • 2023-01-07
      • 2022-07-14
      • 2019-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多