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

[BUG] Error response from daemon: invalid mode: rw,nocopy,www when using Volume subpath #12161

Closed
stivyw opened this issue Sep 25, 2024 · 2 comments
Assignees
Labels

Comments

@stivyw
Copy link

stivyw commented Sep 25, 2024

Description

I think the bug #12075 was not fixed by #12078.
I'm getting this error message or I'm doing something wrong.
Screenshot 2024-09-24 at 22 36 37

More information

All the information are here #12075

Compose Version

Docker Compose version 2.29.7
Docker Compose version 2.29.7
@jhrotko
Copy link
Contributor

jhrotko commented Oct 2, 2024

Hello @stivyw,

two PRs were merged this week to handle the original issue:

In order to make your spec work you will also need to define you bind path in Docker Desktop settings > Resources > File Sharing and add the bind mount path /sw/etc/balance in Virtual file shares.

Moreover, when using the subpath under volume make sure the subpath exists in /sw/etc/balance

@stivyw
Copy link
Author

stivyw commented Oct 2, 2024

Yeap. I'm doing that as I mentioned in the #12075 with docker command.
I will close this in favor to reopened the original issue. Thank's @jhrotko

BUT When volume is external, it works:
mkdir -p $PWD/volume/etc $PWD/volume/www
touch $PWD/volume/etc/ETC $PWD/volume/www/WWW
docker volume create -d local -o type=none -o o=bind -o device=$PWD/volume testvol

@stivyw stivyw closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants