You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/includes/tutorial-sidecar/common-faqs.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,3 +18,29 @@ No. App Service routes internet requests only to the main container. For code-ba
18
18
19
19
For more information on configuring `IsMain`, see [Microsoft.Web sites/sitecontainers](/azure/templates/microsoft.web/sites/sitecontainers).
20
20
21
+
### How do I use volume mounts?
22
+
23
+
The Volume mounts feature enables you to share non-persistent files and directories between containers within your Web App.
24
+
25
+
:::image type="content" source="../../media/tutorial-custom-container-sidecar/configure-volume-mounts.png" alt-text="Screenshot showing a volume mount configuration for a sidecar container.":::
26
+
27
+
**Volume sub path:** This is a logical directory path that is automatically created, and is not referenced within the container. Containers that are configured with the same volume sub path can share files and directories with each other.
28
+
29
+
**Container mount path:** This corresponds to a directory path that you reference within the container. The container mount path is mapped to the volume sub path.
30
+
31
+
For example, suppose the following volume mounts are configured:
32
+
33
+
| Sidecar name | Volume sub path | Container mount path | Read-only |
Based on these settings, the following conditions apply:
41
+
- If Container1 creates **/container1Vol/myfile.txt**, Container2 can read the file via **/container2Vol/myfile.txt**.
42
+
- If Container1 creates **/container1Vol/directory3/myfile.txt**, Container2 can read the file via **/container2Vol/directory3/myfile.txt**, and Container3 can read and write to the file via **/container3Vol/myfile.txt**.
43
+
- Container4 does not share a volume mount in common with any of the other containers.
44
+
45
+
> [!Note]
46
+
> For code-based Linux apps, the built-in Linux container cannot use volume mounts.
0 commit comments