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/service-fabric/container-image-management.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.date: 06/22/2023
10
10
---
11
11
12
12
# Container Image Management
13
-
When deploying Service Fabric containers, the activation path handles the downloading of the container images to the VM on which the container will be running. Once the containers have been removed from the cluster and their application types have been unregistered, there is a clean up cycle that deletes the container images. This clean up works only if the container image has been hard coded in the service manifest. For existing Service Fabric runtime versions, the configurations supporting the clean up of the container images are as follows -
13
+
The activation path during Service Fabric containers deployment, handles the downloading of the container images to the VM on which the containers are running. Once the containers have been removed from the cluster and their application types have been unregistered, there's a cleanup cycle that deletes the container images. This container image cleanup works only if the container image has been hard coded in the service manifest. For existing Service Fabric runtime versions, the configurations supporting the cleanup of the container images are as follows -
14
14
15
15
## Settings
16
16
@@ -35,10 +35,10 @@ When deploying Service Fabric containers, the activation path handles the downlo
35
35
|Setting |Description |
36
36
| --- | --- |
37
37
|PruneContainerImage |Setting to enable or disable pruning of container images when application type is unregistered. |
38
-
|CacheCleanupScanInterval |Setting in seconds determining how often the clean up cycle runs. |
38
+
|CacheCleanupScanInterval |Setting in seconds determining how often the cleanup cycle runs. |
39
39
40
40
## Container Image Management v2
41
-
Starting Service Fabric version 10.0 there is a newer version of the container image deletion flow. This flow cleans up container images irrespective of how the container images may have been defined - either hard coded or parameterized during application deployment. PruneContainerImages and ContainerImageDeletionEnabled configuration are mutually exclusive and cluster upgrade validation exists to ensure one or the other is switched on but not both. The configuration supporting this feature are as follows -
41
+
Starting Service Fabric version 10.0 there's a newer version of the container image deletion flow. This flow cleans up container images irrespective of how the container images may have been defined - either hard coded or parameterized during application deployment. PruneContainerImages and ContainerImageDeletionEnabled configuration are mutually exclusive and cluster upgrade validation exists to ensure one or the other is switched on but not both. The configuration supporting this feature are as follows -
42
42
43
43
### Settings
44
44
@@ -76,9 +76,10 @@ Starting Service Fabric version 10.0 there is a newer version of the container i
76
76
| --- | --- |
77
77
|ContainerImageDeletionEnabled |Setting to enable or disable deletion of container images. |
78
78
|ContainerImageCleanupInterval |Time interval for cleaning up unused container images. |
79
-
|ContainerImageTTL |Time to live for container images once they are eligible for removal (not referenced by containers on the VM and the application is deleted(if ContainerImageDeletionOnAppInstanceDeletionEnabled is enabled)). |
79
+
|ContainerImageTTL |Time to live for container images once they're eligible for removal (not referenced by containers on the VM and the application is deleted(if ContainerImageDeletionOnAppInstanceDeletionEnabled is enabled)). |
80
80
|ContainerImageDeletionOnAppInstanceDeletionEnabled |Setting to enable or disable deletion of expired ttl container images only after application has been deleted as well. |
81
-
|ContainerImagesToSkip |When set enables the container runtime to skip deleting images that match any of the set of regular expressions. Each expression must be separated by the \| character. Example: "mcr.microsoft.com/.+\|docker.io/library/alpine:latest" - this example matches everything prefixed with "mcr.microsoft.com/" and matches exactly "docker.io/library/alpine:latest". By default we do not delete the known Windows base images microsoft/windowsservercore or microsoft/nanoserver. |
81
+
|ContainerImagesToSkip |When set enables the container runtime to skip deleting images that match any of the set of regular expressions. The \| character separates each expression. Example: "mcr.microsoft.com/.+\|docker.io/library/alpine:latest" - this
82
+
example matches everything prefixed with "mcr.microsoft.com/" and matches exactly "docker.io/library/alpine:latest". By default we don't delete the known Windows base images microsoft/windowsservercore or microsoft/nanoserver. |
82
83
83
84
## Next steps
84
85
See the following article for related information:
0 commit comments