Ahoj,
vytvořil jsem si testovací image založenou na node22-slim pro testování robotických testů. Pushnul jsem ji do Azure Container Registry (azurecr). Pokud na druhém stroji pullnu Docker, tak je vše v pořádku, velikost image má 2,2 GB a tolik si ukrojí na disku. Ale když tu samou image pullnu Podmanem, tak si to místo 2,2 GB vezme na disku 12 GB.
Našel by se tu někdo zkušenější, kdo by mi poradil, jak umravnit Podmana, aby si vzal jen reálnou velikost image?
Podman:
containers@debian:~$ podman pull <nazev>.azurecr.io/webtest/wiki-robot:v1
Trying to pull <nazev>.azurecr.io/webtest/wiki-robot:v1...
Getting image source signatures
Copying blob da47994904af done
Copying blob 2cc3ae149d28 done
Copying blob c24c95757577 done
Copying blob 70b0a8313623 done
Copying blob efb648ea5fd0 done
Copying blob 4ff55d38db64 done
Copying blob c04ff6b49f66 done
Copying blob 000e61f8bd40 done
Copying blob 55d9a45a3725 done
Copying blob 765c1cf6ec2d done
Copying blob afb9a538beb5 done
Copying blob c0be39de9533 done
Copying config 897fc418da done
Writing manifest to image destination
Storing signatures
897fc418da9ae564a15b36abf93e526514102c4f5bfde4f838d2f062d7f311e7
containers@debian:~$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
<nazev>.azurecr.io/webtest/wiki-robot v1 897fc418da9a 5 weeks ago 2.2 GB
containers@debian:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 965M 0 965M 0% /dev
tmpfs 197M 572K 197M 1% /run
/dev/sda1 19G 12G 6.1G 66% /
tmpfs 984M 252K 984M 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 197M 20K 197M 1% /run/user/1001
tmpfs 197M 20K 197M 1% /run/user/1000
containers@debian:~$ podman rmi 897fc418da9a
Untagged: <nazev>.azurecr.io/webtest/wiki-robot:v1
Deleted: 897fc418da9ae564a15b36abf93e526514102c4f5bfde4f838d2f062d7f311e7
containers@debian:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 965M 0 965M 0% /dev
tmpfs 197M 572K 197M 1% /run
/dev/sda1 19G 1.8G 16G 10% /
tmpfs 984M 252K 984M 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 197M 20K 197M 1% /run/user/1001
tmpfs 197M 20K 197M 1% /run/user/1000
containers@debian:~$
Docker:
master@debian:~$ sudo docker pull <nazev>.azurecr.io/webtest/wiki-robot:v1
v1: Pulling from webtest/wiki-robot
2cc3ae149d28: Pull complete
c24c95757577: Pull complete
70b0a8313623: Pull complete
efb648ea5fd0: Pull complete
4ff55d38db64: Pull complete
da47994904af: Pull complete
c04ff6b49f66: Pull complete
000e61f8bd40: Pull complete
55d9a45a3725: Pull complete
765c1cf6ec2d: Pull complete
afb9a538beb5: Pull complete
c0be39de9533: Pull complete
Digest: sha256:89ce010390d8a75d0d87f76b1a72513491228d2939b446101b6d95a98042dd97
Status: Downloaded newer image for <nazev>.azurecr.io/webtest/wiki-robot:v1
<nazev>.azurecr.io/webtest/wiki-robot:v1
master@debian:~$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<nazev>.azurecr.io/webtest/wiki-robot v1 897fc418da9a 5 weeks ago 2.18GB
master@debian:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 966M 0 966M 0% /dev
tmpfs 197M 572K 197M 1% /run
/dev/sda1 19G 4.3G 14G 24% /
tmpfs 984M 0 984M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 197M 0 197M 0% /run/user/1000
master@debian:~$ sudo docker rmi 897fc418da9a
Untagged: <nazev>.azurecr.io/webtest/wiki-robot:v1
Untagged: <nazev>.azurecr.io/webtest/wiki-robot@sha256:89ce010390d8a75d0d87f76b1a72513491228d2939b446101b6d95a98042dd97
Deleted: sha256:897fc418da9ae564a15b36abf93e526514102c4f5bfde4f838d2f062d7f311e7
Deleted: sha256:17828619186bd77bf09e338f0cc5e7c7ee8b31927c6e60cb135abbeef0484da2
Deleted: sha256:d9495067017ac7673f3968137f81a42ee19a3d1c12fa9eff0ac0850e86d02cf9
Deleted: sha256:032673c5b4af43bd85fc8b6cc83d7938f641d45406a80bfa81d53e662d0aece1
Deleted: sha256:8a74d5767afd5e040ef7addcd917175c0fb5953ff2a712cd3301453eec45992b
Deleted: sha256:455f8a433b392605ebbead4ec060bb899b9b8a0fd48116d23c43dfad9e9c59f3
Deleted: sha256:72fc6937106035ad9418b46c54e48071f58ab4dc79cf2744626266665eb0a35b
Deleted: sha256:4287fbf7f435ae74814dc3d6776ebdfc1ef50374cd56c6f01120cc05d08b2ce7
Deleted: sha256:d5605e663935b4fbe82b9d21e105bad1ae1e442f858d351fd265526d37a92c45
Deleted: sha256:f1cd7b83432fe47d5d83a3ad2ec186180318db07142d7a75f108e77b65af69ad
Deleted: sha256:eb9f2fb369e3455588647f4885fdd4e85241b3638623394bf9674424dcc81697
Deleted: sha256:79ac1d77c77c3213839c565e5c24767f1ed30770abbad1871ef8fe2ca50552f4
Deleted: sha256:1387079e86adf524e7e92bada71d261d9ff58f34409751ab36560385262a8386
master@debian:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 966M 0 966M 0% /dev
tmpfs 197M 572K 197M 1% /run
/dev/sda1 19G 2.2G 16G 13% /
tmpfs 984M 0 984M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 197M 0 197M 0% /run/user/1000