-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ENGDOCS-2030 #19629
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
ENGDOCS-2030 #19629
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -1785,6 +1785,13 @@ expressed in the short form. | |||||
- `mode`: The file mode for the tmpfs mount as Unix permission bits as an octal number. | ||||||
- `consistency`: The consistency requirements of the mount. Available values are platform specific. | ||||||
|
||||||
> **Tip** | ||||||
> | ||||||
> Working with large repositories or monorepos, or with virtual file systems that are no longer scaling with your codebase? | ||||||
> Compose now takes advantage of [Synchronized file shares](../../desktop/synchronized-file-sharing.md) and automatically creates file shares for bind mounts. | ||||||
> Ensure you're signed into Docker with a paid subscription and have enabled both **Access experimental features** and **Manage Synchronized file shares with Compose** in Docker Desktop's settings. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
{ .tip } | ||||||
|
||||||
## volumes_from | ||||||
|
||||||
`volumes_from` mounts all of the volumes from another service or container. You can optionally specify | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -8,6 +8,13 @@ Volumes are persistent data stores implemented by the container engine. Compose | |||||
|
||||||
The top-level `volumes` declaration lets you configure named volumes that can be reused across multiple services. To use a volume across multiple services, you must explicitly grant each service access by using the [volumes](05-services.md#volumes) attribute within the `services` top-level element. The `volumes` attribute has additional syntax that provides more granular control. | ||||||
|
||||||
> **Tip** | ||||||
> | ||||||
> Working with large repositories or monorepos, or with virtual file systems that are no longer scaling with your codebase? | ||||||
> Compose now takes advantage of [Synchronized file shares](../../desktop/synchronized-file-sharing.md) and automatically creates file shares for bind mounts. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. double space
Suggested change
|
||||||
> Ensure you're signed into Docker with a paid subscription and have enabled both **Access experimental features** and **Manage Synchronized file shares with Compose** in Docker Desktop's settings. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
{ .tip } | ||||||
|
||||||
## Example | ||||||
|
||||||
The following example shows a two-service setup where a database's data directory is shared with another service as a volume, named | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -51,6 +51,12 @@ When the status indicator displays **Watching for filesystem changes**, your fil | |||||
> | ||||||
> When you create a new service, setting the [bind mount option consistency](../reference/cli/docker/service/create.md#options-for-bind-mounts) to `:consistent` bypasses Synchronized file shares. | ||||||
|
||||||
> **Tip** | ||||||
> | ||||||
> Compose can now automatically create file shares for bind mounts. | ||||||
> Ensure you're signed into Docker with a paid subscription and have enabled both **Access experimental features** and **Manage Synchronized file shares with Compose** in Docker Desktop's settings. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
{ .tip } | ||||||
|
||||||
## Explore your file share instance | ||||||
|
||||||
The **Synchronized file shares** section displays all your file share instances and provides useful information about each instance including: | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double space