Skip to content

Commit 07b79b4

Browse files
committed
container create restart clarification
1 parent 69b3cd3 commit 07b79b4

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/container-instances/container-instances-update.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ ms.author: tomcassidy
66
author: tomvcassidy
77
ms.service: container-instances
88
services: container-instances
9-
ms.date: 06/17/2022
9+
ms.date: 04/25/2024
1010
---
1111

1212
# Update containers in Azure Container Instances
1313

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

1616
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.
1717

@@ -26,6 +26,9 @@ To update an existing container group:
2626
* 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).
2727
* 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.
2828

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+
2932
> [!TIP]
3033
> 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],
3134
@@ -41,7 +44,7 @@ az container create --resource-group myResourceGroup --name mycontainer \
4144
--image nginx:alpine --dns-name-label myapplication-staging
4245
```
4346

44-
Update the container group with a new DNS name label, *myapplication*, and set the remaining properties with the values used previously:
47+
Update the container group with a new DNS name label, *application*, and set the remaining properties with the values used previously:
4548

4649
```azurecli-interactive
4750
# Update DNS name label (restarts container), leave other properties unchanged
@@ -51,7 +54,7 @@ az container create --resource-group myResourceGroup --name mycontainer \
5154

5255
## Update benefits
5356

54-
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.
5558

5659
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.
5760

@@ -69,7 +72,7 @@ Applications based on larger container images like Windows Server Core can see s
6972

7073
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.
7174

72-
Changes to these properties require container group deletion prior to redeployment:
75+
Changes to these properties require container group deletion before redeployment:
7376

7477
* OS type
7578
* CPU, memory, or GPU resources
@@ -79,17 +82,14 @@ Changes to these properties require container group deletion prior to redeployme
7982

8083
[!INCLUDE [network profile callout](./includes/network-profile/network-profile-callout.md)]
8184

82-
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.
8386

8487
## Next steps
8588

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)
9393

9494
<!-- LINKS - External -->
9595

0 commit comments

Comments
 (0)