7

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.

Michał Szajbe
  • 8,830
  • 3
  • 33
  • 39
JA Ramos
  • 71
  • 2

1 Answers1

5

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
Michał Szajbe
  • 8,830
  • 3
  • 33
  • 39