Skip to content

Commit 4cd5c9c

Browse files
committed
chore: document image tag decommissioning (coder#1203)
(cherry picked from commit 1e402ff)
1 parent b00ff97 commit 4cd5c9c

File tree

3 files changed

+51
-3
lines changed

3 files changed

+51
-3
lines changed
56.3 KB
Loading

images/deprecating.md

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
---
2-
title: "Deprecate"
3-
description: Learn how to deprecate an image.
2+
title: "Deprecate and Decommission"
3+
description: Learn how to deprecate an image and decommission a tag.
44
---
55

6+
At a certain point, you may wish to deprecate a specific workspace image in
7+
favor of a newer one. Coder provides two mechanisms to control workspace image
8+
lifecycles:
9+
10+
## Deprecate an Image
11+
12+
Deprecation controls whether an entire image repository (and all tags) can be
13+
used to create new workspaces.
14+
615
You can mark images as deprecated to prevent them from being used to create new
7-
workspaces.
16+
workspaces. For example, if you have an existing workspace image based on an
17+
older OS release, and you create a new workspace image based on a newer OS
18+
release, you can **Deprecate** the old workspace image to ensure that new
19+
workspace images use the newer OS release.
20+
21+
To mark an image as **deprecated**:
822

923
1. Go to **Images** and find the image to mark as deprecated.
1024
1. Click **Edit**.
@@ -16,3 +30,28 @@ workspaces.
1630
> Users cannot create new workspaces using deprecated images. However, they can
1731
> continue to use _existing_ workspaces created with the now-deprecated images
1832
> and edit the resources allocated to that workspace.
33+
34+
## Decommission an Image Tag
35+
36+
Decommissioning controls whether an **individual** image tag can be used to
37+
create new workspaces. This may be useful in an environment where image tags are
38+
considered _immutable_.
39+
40+
You can **decommission** an existing image tag to prevent them from being used
41+
to create new workspaces. Additionally, existing workspaces using this tag will
42+
be updated to use the **default image tag** upon their next rebuild.
43+
44+
> ⚠️ You cannot decommission the default image tag. If you need to do so, update
45+
> the default tag and then decommission the previous default tag.
46+
47+
To **decommission** an image tag:
48+
49+
1. Go to **Images** and find the image whose tag you wish to decommission.
50+
1. Under **Available Tags**, find the tag you wish to decommission.
51+
1. Click the three-dot menu to the right in the table, and select
52+
**Decommission**. A dialog will appear asking you to confirm your decision.
53+
54+
![Decommissioning an image tag](../assets/images/decommission-image-tag.png)
55+
56+
To reverse this process, repeat the above steps but select **Recommission**
57+
instead.

images/tags.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ Each image has a default tag. The default tag appears at the top of the list and
2525
is indicated by an asterisk. Coder automatically selects the default tag when
2626
you create a workspace.
2727

28+
Additionally, if the current workspace image tag has been **decommissioned**,
29+
Coder will automatically update it to the default tag when it is next rebuilt.
30+
2831
> For information about how Coder handles image tags, see
2932
> [Image Tag Names](../guides/admin/image-tag-names.md).
3033
@@ -43,3 +46,9 @@ To use an existing tag as the default tag, click the **vertical ellipsis** for a
4346
tag and select **Make default**.
4447

4548
![Set existing tag as default](../assets/images/existing-tag-as-default.png)
49+
50+
### Decommission a tag
51+
52+
A **decommissioned** image tag cannot be used to create new workspaces.
53+
54+
See [Deprecate and Decommission](./deprecating.md#decommission-an-image-tag)

0 commit comments

Comments
 (0)