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

compose: add volume subpath to spec #19778

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

milas
Copy link
Contributor

@milas milas commented Apr 10, 2024

Description

Add volume subpath to Compose spec for a service.

Imported from compose-spec.

⚠️ This requires Moby v26 (v4.29+)

Related issues or tickets

Reviews

@aevesdocker

Imported from compose-spec.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
@milas milas requested a review from aevesdocker as a code owner April 10, 2024 19:42
@github-actions github-actions bot added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Apr 10, 2024
Copy link

netlify bot commented Apr 10, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 257ae7b
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/6616ebb7de53d200089e72bf
😎 Deploy Preview https://deploy-preview-19778--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -1779,6 +1780,7 @@ expressed in the short form.
- `selinux`: The SELinux re-labeling option `z` (shared) or `Z` (private)
- `volume`: Configures additional volume options:
- `nocopy`: Flag to disable copying of data from a container when a volume is created.
- `subpath`: Path inside a volume to mount instead of the volume root.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @milas. What Docker Compose version was this introduced in? The latest?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1.26.0

@aevesdocker aevesdocker merged commit 1406ce6 into docker:main Apr 12, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants