Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

microk8s.ctr image import error import image

someone has tried microk8s on windows (I only have to use it for a process I always use debian) I have an error when importing an image to microk8s

command: microk8s ctr image import image.tar

reply: ctr: open image.tar: no such file or directory An error occurred when trying to execute 'sudo microk8s.ctr image import image.tar' with 'multipass': returned exit code 1.

like image 485
JA Ramos Avatar asked Nov 15 '22 06:11

JA Ramos


1 Answers

The microk8s.ctr ... command is being executed inside the VM managed by multipass, so it cannot access files from the host.

In order to import it, the image must be first transfered from host system to the VM.

multipass transfer image.tar microk8s-vm:/tmp/image.tar

Only then import

microk8s ctr image import /tmp/image.tar
like image 94
Michał Szajbe Avatar answered Jan 18 '23 17:01

Michał Szajbe