Skip to content

Commit ddec3aa

Browse files
authored
Merge pull request #103021 from dlepow/acifix3
[ACI] Emptydir updates
2 parents 14cb918 + 101167f commit ddec3aa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

articles/container-instances/container-instances-volume-emptydir.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Mount emptyDir volume to container group
33
description: Learn how to mount an emptyDir volume to share data between the containers in a container group in Azure Container Instances
44
ms.topic: article
5-
ms.date: 02/08/2018
5+
ms.date: 01/31/2020
66
---
77

88
# Mount an emptyDir volume in Azure Container Instances
@@ -24,18 +24,20 @@ Some example uses for an *emptyDir* volume:
2424

2525
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.
2626

27+
The maximum size of a Linux *emptyDir* volume is 50 GB.
28+
2729
## Mount an emptyDir volume
2830

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.
3032

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.
3234

3335
For example, the following Resource Manager template creates a container group consisting of two containers, each of which mounts the *emptyDir* volume:
3436

3537
<!-- https://github.com/Azure/azure-docs-json-samples/blob/master/container-instances/aci-deploy-volume-emptydir.json -->
3638
[!code-json[volume-emptydir](~/azure-docs-json-samples/container-instances/aci-deploy-volume-emptydir.json)]
3739

38-
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).
3941

4042
## Next steps
4143

0 commit comments

Comments
 (0)