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

relative path not supported #713

Open
2 tasks done
foegra opened this issue Jan 16, 2025 · 1 comment
Open
2 tasks done

relative path not supported #713

foegra opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@foegra
Copy link

foegra commented Jan 16, 2025

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

No response

👟 Reproduction steps

use local path for file volume mount that would look like this:
./path/to/local/file.conf:/remote/mount

👀 Expected behavior

success (it actually works with regular docker compose up )

😓 Actual Behavior

Cannot start stack. Error in log output

Dockge Version

1.4.2

💻 Operating System and Arch

ubuntu 24.10

🌐 Browser

Firefox 134

🐋 Docker Version

27.5.0

🟩 NodeJS Version

No response

📝 Relevant log output

Error response from daemon: 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 "/opt/stacks/appflowy-cloud/nginx/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": create mountpoint for /etc/nginx/nginx.conf mount: cannot create subdirectories in "/var/lib/docker/overlay2/4c4bec227f67450fb2e4ecb15198a7bc45dbc105adfd98382f6f32d589457a99/merged/etc/nginx/nginx.conf": 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
@foegra foegra added the bug Something isn't working label Jan 16, 2025
@DomiiBunn
Copy link
Contributor

This error usually means that one of the paths does not exist.

Dockage does support relative mounts. Make sure that your file is indead in /opt/stacks/<stack name> as that is the path docker will be relating to.

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