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/container-instances/container-instances-volume-emptydir.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Mount emptyDir volume to container group
3
3
description: Learn how to mount an emptyDir volume to share data between the containers in a container group in Azure Container Instances
4
4
ms.topic: article
5
-
ms.date: 02/08/2018
5
+
ms.date: 01/31/2020
6
6
---
7
7
8
8
# Mount an emptyDir volume in Azure Container Instances
@@ -24,18 +24,20 @@ Some example uses for an *emptyDir* volume:
24
24
25
25
Data in an *emptyDir* volume is persisted through container crashes. Containers that are restarted, however, are not guaranteed to persist the data in an *emptyDir* volume. If you stop a container group, the *emptyDir* volume is not persisted.
26
26
27
+
The maximum size of a Linux *emptyDir* volume is 50 GB.
28
+
27
29
## Mount an emptyDir volume
28
30
29
-
To mount an emptyDir volume in a container instance, you must deploy using an [Azure Resource Manager template](/azure/templates/microsoft.containerinstance/containergroups).
31
+
To mount an emptyDir volume in a container instance, you can deploy using an [Azure Resource Manager template](/azure/templates/microsoft.containerinstance/containergroups), a [YAML file](container-instances-reference-yaml.md), or other programmatic methods to deploy a container group.
30
32
31
-
First, populate the `volumes` array in the container group `properties` section of the template. Next, for each container in the container group in which you'd like to mount the *emptyDir* volume, populate the `volumeMounts` array in the `properties` section of the container definition.
33
+
First, populate the `volumes` array in the container group `properties` section of the file. Next, for each container in the container group in which you'd like to mount the *emptyDir* volume, populate the `volumeMounts` array in the `properties` section of the container definition.
32
34
33
35
For example, the following Resource Manager template creates a container group consisting of two containers, each of which mounts the *emptyDir* volume:
To see an example of container instance deployment with an Azure Resource Manager template, see[Deploy multi-container groups in Azure Container Instances](container-instances-multi-container-group.md).
40
+
To see examples of container group deployment, see [Deploy a multi-container group using a Resource Manager template](container-instances-multi-container-group.md) and[Deploy a multi-container group using a YAML file](container-instances-multi-container-yaml.md).
0 commit comments