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: scripts/prune/README.md
+21-91Lines changed: 21 additions & 91 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,45 +4,33 @@
4
4
5
5
> Container image pruning script that supports both Docker Hub and GitHub Container Registry (GHCR).
6
6
7
-
## Overview
7
+
## Usage
8
8
9
-
- Support both Docker Hub and GitHub Container Registry
10
-
- Use a modular architecture with separate registry implementations
11
-
- Provide multiple pruning strategies including a new "keep latest N images" option
12
-
- Better error handling and logging
13
-
14
-
## Usage Examples
9
+
```console
10
+
usage: main.py [-h] --container CONTAINER
11
+
[--registry {ghcr, dockerhub, all}]
12
+
[--verbose] [--dry-run]
13
+
(--prune-untagged-age DAYS | --prune-all-untagged | --keep-latest COUNT)
14
+
```
15
15
16
16
### Environment Variables
17
17
18
-
To use the script, you need to set up environment variables for authentication. The script supports both Docker Hub and GitHub Container Registry.
18
+
To use the script, you need to set up environment variables for authentication.
19
+
The script supports both [Docker Hub](https://hub.docker.com) and [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry).
0 commit comments