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-update.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ ms.author: tomcassidy
6
6
author: tomvcassidy
7
7
ms.service: container-instances
8
8
services: container-instances
9
-
ms.date: 06/17/2022
9
+
ms.date: 04/25/2024
10
10
---
11
11
12
12
# Update containers in Azure Container Instances
13
13
14
-
During normal operation of your container instances, you may find it necessary to update the running containers in a [container group](./container-instances-container-groups.md). For example, you might wish to update a property such as an image version, a DNS name, or an environment variable, or refresh a property in a container whose application has crashed.
14
+
During normal operation of your container instances, you could find it necessary to update the running containers in a [container group](./container-instances-container-groups.md). For example, you might wish to update a property such as an image version, a DNS name, or an environment variable, or refresh a property in a container whose application crashed.
15
15
16
16
Update the containers in a running container group by redeploying an existing group with at least one modified property. When you update a container group, all running containers in the group are restarted in-place, usually on the same underlying container host.
17
17
@@ -26,6 +26,9 @@ To update an existing container group:
26
26
* Modify or add at least one property of the group that supports update when you redeploy. Certain properties [don't support updates](#properties-that-require-container-delete).
27
27
* Set other properties with the values you provided previously. If you don't set a value for a property, it reverts to its default value.
28
28
29
+
> [!NOTE]
30
+
> If you set all properties to the values you previously provided and don't modify or add any, the container will restart in response to the create command.
31
+
29
32
> [!TIP]
30
33
> A [YAML file](./container-instances-container-groups.md#deployment) helps maintain a container group's deployment configuration, and provides a starting point to deploy an updated group. If you used a different method to create the group, you can export the configuration to YAML by using [az container export][az-container-export],
The primary benefit of updating an existing container group is faster deployment. When you redeploy an existing container group, its container image layers are pulled from those cached by the previous deployment. Instead of pulling all image layers fresh from the registry as is done with new deployments, only modified layers (if any) are pulled.
57
+
The primary benefit of updating an existing container group is faster deployment. When you redeploy an existing container group, its container image layers are pulled from layers cached by the previous deployment. Instead of pulling all image layers fresh from the registry as is done with new deployments, only modified layers (if any) are pulled.
55
58
56
59
Applications based on larger container images like Windows Server Core can see significant improvement in deployment speed when you update instead of delete and deploy new.
57
60
@@ -69,7 +72,7 @@ Applications based on larger container images like Windows Server Core can see s
69
72
70
73
Not all container group properties can be updated. For example, to change the restart policy of a container, you must first delete the container group, then create it again.
71
74
72
-
Changes to these properties require container group deletion prior to redeployment:
75
+
Changes to these properties require container group deletion before redeployment:
73
76
74
77
* OS type
75
78
* CPU, memory, or GPU resources
@@ -79,17 +82,14 @@ Changes to these properties require container group deletion prior to redeployme
When you delete a container group and recreate it, it's not "redeployed," but created new. All image layers are pulled fresh from the registry, not from those cached by a previous deployment. The IP address of the container might also change due to being deployed to a different underlying host.
85
+
When you delete a container group and recreate it, it's not "redeployed," but created new. All image layers are pulled fresh from the registry, not from layers cached by a previous deployment. The IP address of the container might also change due to being deployed to a different underlying host.
83
86
84
87
## Next steps
85
88
86
-
Mentioned several times in this article is the **container group**. Every container in Azure Container Instances is deployed in a container group, and container groups can contain more than one container.
87
-
88
-
[Container groups in Azure Container Instances](./container-instances-container-groups.md)
89
-
90
-
[Deploy a multi-container group](container-instances-multi-container-group.md)
91
-
92
-
[Manually stop or start containers in Azure Container Instances](container-instances-stop-start.md)
89
+
This article mentions **container groups** several times. Every container in Azure Container Instances is deployed in a container group, and container groups can contain more than one container. The following articles provide more information about container groups:
90
+
*[Container groups in Azure Container Instances](./container-instances-container-groups.md)
91
+
*[Deploy a multi-container group](container-instances-multi-container-group.md)
92
+
*[Manually stop or start containers in Azure Container Instances](container-instances-stop-start.md)
0 commit comments