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

Volume subpath silently fails #3182

Open
pikeas opened this issue Sep 13, 2024 · 0 comments
Open

Volume subpath silently fails #3182

pikeas opened this issue Sep 13, 2024 · 0 comments

Comments

@pikeas
Copy link

pikeas commented Sep 13, 2024

services:
    foo:
        image: ubuntu
        volumes:
            - type: volume
              source: bar
              volume: { subpath: baz }
              target: /baz

From https://github.com/moby/swarmkit/blob/master/swarmd/dockerexec/container.go#L338-L343:

if m.VolumeOptions != nil {
	mount.VolumeOptions = &enginemount.VolumeOptions{
		NoCopy: m.VolumeOptions.NoCopy,
		// TODO: uncomment after 26.0 vendor
		// Subpath: m.VolumeOptions.Subpath,
	}

Has Docker 26.0 been vendored? If so, please enable volume subpath support! If not, please emit an error message.

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

No branches or pull requests

1 participant