Remove `docker.io` prefix from `docker-image-extract` calls

David Chen 2023-11-17 23:27:53 -05:00
parent 47106651e8
commit c37e5e7845
1 changed files with 16 additions and 23 deletions

@ -29,33 +29,26 @@ $ mkdir vw-image
$ cd vw-image
$ wget https://raw.githubusercontent.com/jjlin/docker-image-extract/main/docker-image-extract
$ chmod +x docker-image-extract
$ ./docker-image-extract docker.io/vaultwarden/server:latest-alpine
$ ./docker-image-extract vaultwarden/server:latest-alpine
Getting multi-arch manifest list...
Platform linux/amd64 resolved to 'sha256:8e344ffce9aef3a18687d21e53e7355a2d924299029c4af0d94acdd25048f292'...
Getting API token...
Getting image manifest for docker.io/vaultwarden/server:latest-alpine...
Downloading layer 801bfaa63ef2094d770c809815b9e2b9c1194728e5e754ef7bc764030e140cea...
Extracting layer...
Downloading layer c6d331ed95271d8005dea195449ab4ef943017dc97ab134a4426faf441ae4fa6...
Extracting layer...
Downloading layer bfd9ec32f740ca8c86ccde057595d29a31eb093aafd7619fcdd4b956c7bf95e3...
Extracting layer...
Downloading layer e9bfb5d92e4629b1dcb4a13a470c90f51b9edde4e184d8520afc589728b8b675...
Extracting layer...
Downloading layer 5757963c858ce72bc4a1874f4971d326d21d2a844f03063a3c99e312150adf95...
Extracting layer...
Downloading layer f705bf64e4315fea1830cc137d1deda194e825da03bd7822e41ac52457bc83e7...
Extracting layer...
Downloading layer 909b5deb38cbce9f83598918bf7f38b7c2194d385456cf7ef15eff47f8a63108...
Extracting layer...
Downloading layer 8516f4cd818630cd60fa18254b072f8d9c3748bdb56f6e2527dc1c204e8e017c...
Extracting layer...
Getting image manifest for vaultwarden/server:latest-alpine...
Fetching and extracting layer 96526aa774ef0126ad0fe9e9a95764c5fc37f409ab9e97021e7b4775d82bf6fa...
Fetching and extracting layer cd8bc2d8ff321b604bfbaeaf05d5d003d151dff16ba8c9401b2454ce2523d4a8...
Fetching and extracting layer 822e55e7fca73a44ec8200bcae5ff098df0449884bb1489226104e13d861b1d2...
Fetching and extracting layer 639668723db6e831c0c74eea526afd5dc86fb186ca31b70bcb49bcaf687811c6...
Fetching and extracting layer 12f58a7c9a5158fe8b56a294dd7f597aa564c881d8af327ae84e4fe42f301c81...
Fetching and extracting layer 205fba48648467a1b138596797b694ae18b3506ffd5f77ccb968090fef127ed6...
Image contents extracted into ./output.
$ ls -ld output/{vaultwarden,web-vault}
-rwx------ 1 user user 22054608 Feb 6 21:46 output/vaultwarden
drwx------ 8 user user 4096 Feb 6 21:46 output/web-vault/
-rwxr-xr-x 1 user user 53602704 Nov 5 23:57 output/vaultwarden
drwxr-xr-x 8 user user 4096 Nov 3 15:23 output/web-vault
```
To pull and extract an image for another platform:
* ARMv6: `./docker-image-extract -p linux/arm/v6 docker.io/vaultwarden/server:latest-alpine`
* ARMv7: `./docker-image-extract -p linux/arm/v7 docker.io/vaultwarden/server:latest-alpine`
* ARMv8 / AArch64: `./docker-image-extract -p linux/arm64 docker.io/vaultwarden/server:latest-alpine`
* ARMv6: `./docker-image-extract -p linux/arm/v6 vaultwarden/server:latest-alpine`
* ARMv7: `./docker-image-extract -p linux/arm/v7 vaultwarden/server:latest-alpine`
* ARMv8 / AArch64: `./docker-image-extract -p linux/arm64 vaultwarden/server:latest-alpine`