Skip to content

Commit c8d557d

Browse files
Merge pull request #295362 from craigshoemaker/aca/tag-guidance
[Container Apps] Add note to avoid using static tags
2 parents 34c5dbf + c4f9874 commit c8d557d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

articles/container-apps/containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Most container apps have a single container. In advanced scenarios, an app may a
130130

131131
| Setting | Description | Remarks |
132132
|---|---|---|
133-
| `image` | The container image name for your container app. | This value takes the form of `repository/<IMAGE_NAME>:<TAG>`. |
133+
| `image` | The container image name for your container app. | This value takes the form of `repository/<IMAGE_NAME>:<TAG>`. <br><br>Avoid using using static tags like `latest` for container images. Using static tags can lead to caching problems and can make your app difficult to troubleshoot. Instead, use unique tags for each deployment, such as a Git hash or date and time to ensure that updates are properly tracked and deployed. |
134134
| `name` | Friendly name of the container. | Used for reporting and identification. |
135135
| `command` | The container's startup command. | Equivalent to Docker's [entrypoint](https://docs.docker.com/engine/reference/builder/) field. |
136136
| `args` | Start up command arguments. | Entries in the array are joined together to create a parameter list to pass to the startup command. |

articles/container-apps/faq.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,9 @@ sections:
162162
How do I ensure the build and image of my Docker-less build are available in the same region as my app?
163163
answer: |
164164
When using `containerapp up` in combination with a Docker-less code base, use the `--location` parameter so that application runs in a location other than US East.
165-
165+
- name: Tagging
166+
questions:
167+
- question: |
168+
How do I use `latest` or a static tag for my container image?
169+
answer: |
170+
Avoid using using static tags like `latest` for container images. Using static tags can lead to caching problems and can make your app difficult to troubleshoot. Instead, use unique tags for each deployment, such as a Git hash or date and time to ensure that updates are properly tracked and deployed.

0 commit comments

Comments
 (0)