https://github.com/dvob/calc-image-size
Calculates the size of an image on a docker registry
https://github.com/dvob/calc-image-size
Last synced: 4 months ago
JSON representation
Calculates the size of an image on a docker registry
- Host: GitHub
- URL: https://github.com/dvob/calc-image-size
- Owner: dvob
- License: apache-2.0
- Created: 2024-10-16T13:41:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T13:52:09.000Z (over 1 year ago)
- Last Synced: 2025-06-30T00:46:31.384Z (12 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# calc-image-size
Calculates the size of an image on a Docker registry.
It takes into account image indexes (images for all platforms), image manifests and all the layers.
Currently it doesn't take into account the size of image configs. But its likely that thier size if negligible compared to the actual images.
## Install:
```
go install github.com/dvob/calc-image-size@latest
```
## Usage:
```
calc-image-size IMAGE1 IMAGE2 ... IMAGEN
```
If images do not have a specifc tag, all tags are used.
## Examples:
Calculate only specific `latest` tag for `busybox` but all tags for `dvob/http-server`
```
calc-image-size busybox:latest dvob/http-server
```