0

当我尝试使用 InvoiceNinja 的 GitHub 页面中的 docker-compose.yml 文件时,出现以下错误。我已经根据自述文件更改了所有变量。有谁知道是什么导致了这个错误

ERROR: for test_server_1  Cannot start service server: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/home/***/test/config/caddy/Caddyfile\\\" to rootfs \\\"/var/lib/docker/overlay2/1f1454ea8eee1d6433ee4eda9a7cc313cbe2a2c54a6bb707d8edf9b95898772b/merged\\\" at \\\"/var/lib/docker/overlay2/1f1454ea8eee1d6433ee4eda9a7cc313cbe2a2c54a6bb707d8edf9b95898772b/merged/etc/caddy/Caddyfile\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

ERROR: for server  Cannot start service server: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/home/****/test/config/caddy/Caddyfile\\\" to rootfs \\\"/var/lib/docker/overlay2/1f1454ea8eee1d6433ee4eda9a7cc313cbe2a2c54a6bb707d8edf9b95898772b/merged\\\" at \\\"/var/lib/docker/overlay/1f1454ea8eee1d6433ee4eda9a7cc313cbe2a2c54a6bb707d8edf9b95898772b/merged/etc/caddy/Caddyfile\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.
4

1 回答 1

0

问题是您没有克隆完整的存储库。我们已经在这个Github issue中讨论过这个问题。

仅供参考:

  1. 创建一个新文件夹,例如/home/test/my-new-in-setup
  2. 转到新文件夹cd /home/test/my-new-in-setup并使用克隆此存储库git clone https://github.com/invoiceninja/dockerfiles.git .
  3. 运行 docker-composedocker-compose up -d
于 2020-08-16T15:45:50.460 回答