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: old_docker_images_auto_delete/README.md
+27-10Lines changed: 27 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,34 @@ During Containerized Deployment of applications, often some VMs are particularly
5
5
Since the VMs have a fixed Disk Size, often storage issues arise, which lead to failure in the building of the containers leading to breakage in the CICD pipeline.
6
6
7
7
Therefore it's necessary to remove older versions of the container images on a regular basis to avoid storage issues.
8
-
A script has to be written, which would perform the clean-up process based on the image tags.
9
8
10
-
It will preserve all the docker images containing the latest tag.
9
+
**This script will preserve all the docker images containing the latest tag.
11
10
For a particular repository, the tag with the highest number would be preserved.
12
-
A provision is made to add exception images that would be never stopped.
11
+
A provision is made to add exception images that would be never stopped.**
13
12
14
-
---
15
-
<br>
13
+
## Setup instructions
16
14
17
-
## Rules Implemented:
18
-
19
-
1. All images with 'latest' tag would not be touched.
20
-
2. For a particular repository, the tag with the highest number would be preserved.
21
-
3. A provision is made to add exception images which would be never stopped.
15
+
Make sure to have Docker Installed in your System.
16
+
Run the `main.py` file.
17
+
18
+
19
+
## Detailed explanation of script
20
+
21
+
- All images with 'Alpine, Buster, Slim & Latest' tag would not be touched.
22
+
- For a particular repository, the tag with the highest number would be preserved.
23
+
- A provision is made to add exception images which would be never stopped.
0 commit comments