https://rancher.com/ logo
Title
s

steep-airplane-89460

10/28/2022, 1:57 PM
New User / Win 11 22H2 n RD 1.6.1 / I created several images for my app suite, they all went to default image NS / doc implies they should go to k8s.io image NS / also I think I accidentally created a k8.io image NS. 1) How do I move my app image NS from default to k8s.io? 2) How do delete the k8.io image NS I think I created?
j

jolly-forest-99711

10/28/2022, 4:36 PM
I'm not aware of a way to move your images from one namespace to another - you might have to delete them and rebuild them in the new namespace. If you run
nerdctl --help
, you will see the global
--namespace
option that lets you specify what namespace the command you are running applies to. Regarding creating and deleting namespaces,
nerdctl namespace --help
should tell you what you need to know 😃
s

steep-airplane-89460

10/29/2022, 4:10 PM
@jolly-forest-99711 So - what "worked" fairly quickly for me; from nerdctl I "saved" the image as a tar file (fast and local) / then I simply reloaded the tar file it into the k8s.io "image namespace" using the "load" (from that tar file) image nerdctl command / after this was done / I was then able to issue the kubectl commands to create the pod and run the pod. I deleted the erroneous k8.io "image namespace" easily from the Rancher Desktop UI. This was much faster than "rebuilding the image" from the Rancher Desktop UI into the correct "image namespace". The docs should specify and distinguish "image namespace" from "cluster namespace" each time - as this "image namespace" requirement of k8s.io that Rancher Desktop has for nerdctl must use as NOT evident when "building" or "pulling" container images using the Rancher Desktop UI. The Rancher Desktop UI uses the default container image "tag" vs "k8s.io" tag when building or pulling container images - and this process sometimes takes a long time. FYI
👍 1