adamant-kite-43734
02/02/2024, 3:19 PMcreamy-pencil-82913
02/02/2024, 7:33 PMglamorous-afternoon-50134
02/02/2024, 9:40 PMcreamy-pencil-82913
02/02/2024, 10:02 PMcreamy-pencil-82913
02/02/2024, 10:02 PMglamorous-afternoon-50134
02/02/2024, 10:03 PMcreamy-pencil-82913
02/02/2024, 10:03 PMcreamy-pencil-82913
02/02/2024, 10:04 PMcreamy-pencil-82913
02/02/2024, 10:04 PMglamorous-afternoon-50134
02/02/2024, 10:04 PMcreamy-pencil-82913
02/02/2024, 10:05 PMcreamy-pencil-82913
02/02/2024, 10:05 PMglamorous-afternoon-50134
02/02/2024, 10:05 PMdocker save
creamy-pencil-82913
02/02/2024, 10:05 PMglamorous-afternoon-50134
02/02/2024, 10:05 PMglamorous-afternoon-50134
02/02/2024, 10:06 PMcreamy-pencil-82913
02/02/2024, 10:06 PMcreamy-pencil-82913
02/02/2024, 10:08 PMglamorous-afternoon-50134
02/02/2024, 10:09 PM# ctr image
NAME:
ctr images - Manage images
USAGE:
ctr images command [command options] [arguments...]
COMMANDS:
check Check existing images to ensure all content is available locally
export Export images
import Import images
list, ls List images known to containerd
mount Mount an image to a target path
unmount Unmount the image from the target
pull Pull an image from a remote
push Push an image to a remote
prune Remove unused images
delete, del, remove, rm Remove one or more images by reference
tag Tag an image
label Set and clear labels for an image
convert Convert an image
usage Display usage of snapshots for a given image ref
OPTIONS:
--help, -h show help
creamy-pencil-82913
02/02/2024, 10:12 PMbrandond@dev01:~$ docker save <http://docker.io/library/alpine:3.19|docker.io/library/alpine:3.19> -o alpine.tar
brandond@dev01:~$ file alpine.tar
alpine.tar: POSIX tar archive
brandond@dev01:~$ ls -la alpine.tar
-rw------- 1 brandond brandond 7676416 Feb 2 22:12 alpine.tar
/ # ctr -n <http://k8s.io|k8s.io> image import alpine.tar
unpacking <http://docker.io/library/alpine:3.19|docker.io/library/alpine:3.19> (sha256:566e5c90dcb6624dfce1239f9a7a2431dd9a32d84d2e9e7396efed313d637537)...done
/ # crictl image ls
IMAGE TAG IMAGE ID SIZE
<http://docker.io/library/alpine|docker.io/library/alpine> 3.19 05455a08881ea 7.67MB
<http://docker.io/rancher/klipper-helm|docker.io/rancher/klipper-helm> v0.8.2-build20230815 5f89cb8137ccb 90.9MB
<http://docker.io/rancher/klipper-lb|docker.io/rancher/klipper-lb> v0.4.5 17066c233afa3 7.82MB
<http://docker.io/rancher/local-path-provisioner|docker.io/rancher/local-path-provisioner> v0.0.24 b29384aeb4b13 14.9MB
<http://docker.io/rancher/mirrored-coredns-coredns|docker.io/rancher/mirrored-coredns-coredns> 1.10.1 ead0a4a53df89 16.2MB
<http://docker.io/rancher/mirrored-library-traefik|docker.io/rancher/mirrored-library-traefik> 2.10.5 cc365cbb0397b 43.1MB
<http://docker.io/rancher/mirrored-metrics-server|docker.io/rancher/mirrored-metrics-server> v0.6.3 817bbe3f2e517 29.9MB
<http://docker.io/rancher/mirrored-pause|docker.io/rancher/mirrored-pause> 3.6 6270bb605e12e 301kB
looks right to meglamorous-afternoon-50134
02/02/2024, 10:16 PMkubectl run -it --rm --image=alpine alpine -- ash
, the image can't be pulled and the pod does not startcreamy-pencil-82913
02/02/2024, 10:16 PMcreamy-pencil-82913
02/02/2024, 10:17 PMlatest
which also has an implicit ImagePullPolicy of Alwayscreamy-pencil-82913
02/02/2024, 10:17 PMcreamy-pencil-82913
02/02/2024, 10:18 PM--image=<http://docker.io/library/alpine:3.19|docker.io/library/alpine:3.19>
instead of just leaving so many things to the default?creamy-pencil-82913
02/02/2024, 10:18 PMalpine
is implicitly <http://docker.io/library/alpine:latest|docker.io/library/alpine:latest>
I think. But you’re leaving a lot unspecified by just asking for alpine
glamorous-afternoon-50134
02/02/2024, 10:19 PMglamorous-afternoon-50134
02/02/2024, 10:19 PMcreamy-pencil-82913
02/02/2024, 10:20 PMlatest
tag when using mirrors. It has weird behavior since you don’t really know what it points atglamorous-afternoon-50134
02/02/2024, 10:21 PMcreamy-pencil-82913
02/02/2024, 10:23 PMglamorous-afternoon-50134
02/02/2024, 10:24 PMglamorous-afternoon-50134
02/02/2024, 10:25 PMglamorous-afternoon-50134
02/02/2024, 10:25 PMglamorous-afternoon-50134
02/02/2024, 10:26 PM