Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用docker-compose部署时,程序把config.docker.yml文件创建成了名为文件夹,导致程序报错 #811

Open
ZDY321 opened this issue Nov 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ZDY321
Copy link

ZDY321 commented Nov 28, 2024

程序版本

0.7lastest

所使用的 config 文件的内容

使用项目自带的docker-compose.yaml文件

程序 log

Digest: sha256:147620479985b5780600dea24223c71eb8525e01727cce7fcd4bba8896d66d60
Status: Downloaded newer image for grafana/grafana-oss:latest
Creating bililive-graf ... 
Creating bililive-go   ... error
Creating bililive-prom ... 

ERROR: for bililive-go  Cannot start service bililive-go: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/root/data/docker_data/bililive-go/config.docker.yml" to rootfs at "/etc/bililive-go/config.yml": create mount destination for /etc/bililive-go/config.yml mount: cannot mkdir in /var/lib/docker/overlay2/fee
Creating bililive-graf ... doneunknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists 
Creating bililive-prom ... done

ERROR: for bililive-go  Cannot start service bililive-go: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/root/data/docker_data/bililive-go/config.docker.yml" to rootfs at "/etc/bililive-go/config.yml": create mount destination for /etc/bililive-go/config.yml mount: cannot mkdir in /var/lib/docker/overlay2/fee3bf22bd30c265314e995d7e51ffeff8fdd959984b7c2e46d1b8faa20a5c41/merged/etc/bililive-go/config.yml: 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.

自由描述

容器部署时,

volumes:
      - ./Videos:/srv/bililive
      - ./config.docker.yml:/etc/bililive-go/config.yml

程序把config.docker.yml文件创建成了名为config.docker.yml的文件夹,导致程序报错

@ZDY321 ZDY321 added the bug Something isn't working label Nov 28, 2024
@wwkk2580
Copy link

wwkk2580 commented Dec 9, 2024

使用绝对路径

    volumes:
      - /root/Movies/:/srv/bililive
      - /root/docker/Bililive-go/config.yml:/etc/bililive-go/config.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants