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

Referencing Cluster volumes #12038

Open
cherbst opened this issue Aug 1, 2024 · 1 comment
Open

Referencing Cluster volumes #12038

cherbst opened this issue Aug 1, 2024 · 1 comment

Comments

@cherbst
Copy link

cherbst commented Aug 1, 2024

Description

If I am correct it is currently not possible to use cluster volumes in a docker-compose.yml file like with docker commands:
https://github.com/moby/moby/blob/master/docs/cluster_volumes.md
On the service level the volume directive only supports pipe,npipe,tmpfs and volume . Probably a cluster type should be added or the top level volumedirective needs a type parameter.

@ndeloof
Copy link
Contributor

ndeloof commented Aug 1, 2024

According to this doc, such a volume can be created by docker volume create with adequate driver options, and listed by docker volume ls. So you should be able to do the same with a top-level volume (not by service) entry to use the required driver and driver-opts, or refer to an external volume by name if you want to use an existing one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants