1
1
---
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 .
4
4
---
5
5
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
+
6
15
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** :
8
22
9
23
1 . Go to ** Images** and find the image to mark as deprecated.
10
24
1 . Click ** Edit** .
@@ -16,3 +30,28 @@ workspaces.
16
30
> Users cannot create new workspaces using deprecated images. However, they can
17
31
> continue to use _ existing_ workspaces created with the now-deprecated images
18
32
> 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.
0 commit comments