docker image rm buildkit stuff?
This commit is contained in:
parent
07a2c81f05
commit
b8fbc0a95d
1 changed files with 8 additions and 5 deletions
13
.github/workflows/docker.yml
vendored
13
.github/workflows/docker.yml
vendored
|
|
@ -102,12 +102,15 @@ jobs:
|
||||||
emd "# Compressed (download) sizes:"
|
emd "# Compressed (download) sizes:"
|
||||||
dockersize() { docker manifest inspect -v "$1" | jq -c 'if type == "array" then .[] else . end' | jq -r '[ ( .Descriptor.platform | [ .os, .architecture, .variant, ."os.version" ] | del(..|nulls) | join("/") ), ( [ ( .OCIManifest // .SchemaV2Manifest ).layers[].size ] | add ) ] | join(" ")' | numfmt --to iec --format '%.2f' --field 2 | sort | column -t ; }
|
dockersize() { docker manifest inspect -v "$1" | jq -c 'if type == "array" then .[] else . end' | jq -r '[ ( .Descriptor.platform | [ .os, .architecture, .variant, ."os.version" ] | del(..|nulls) | join("/") ), ( [ ( .OCIManifest // .SchemaV2Manifest ).layers[].size ] | add ) ] | join(" ")' | numfmt --to iec --format '%.2f' --field 2 | sort | column -t ; }
|
||||||
cmd dockersize "$IMG"
|
cmd dockersize "$IMG"
|
||||||
cmd docker buildx history inspect
|
## don't need the following in job summary, but nice to have in full log
|
||||||
cmd docker buildx du
|
docker buildx history inspect
|
||||||
## in CI with buildx `docker image ls` just lists moby/buildkit and tonistiigi/binfmt since the multi-arch build is pushed to registry instead of loaded locally, so we need to pull it first (cached anyway)
|
docker buildx du
|
||||||
cmd docker pull "$IMG"
|
## not needed locally, but in CI with buildx `docker image ls` just lists moby/buildkit and tonistiigi/binfmt since the multi-arch build is pushed to registry instead of loaded locally, so we need to pull it first (cached anyway)
|
||||||
|
docker pull "$IMG"
|
||||||
|
docker image rm moby/buildkit
|
||||||
|
docker image rm tonistiigi/binfmt
|
||||||
emd '# Uncompressed size (max, not size on disk due to sharing):'
|
emd '# Uncompressed size (max, not size on disk due to sharing):'
|
||||||
cmd docker image ls
|
cmd docker image ls --tree
|
||||||
emd '# size = unique + shared:'
|
emd '# size = unique + shared:'
|
||||||
cmd docker system df -v
|
cmd docker system df -v
|
||||||
emd '```'
|
emd '```'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue