Issue with importing image to microk8s

Hi,

Rarely when importing a docker tar file to the microk8s using the command below It looks like the command finished successfully but the image was not imported, it happened twice on two different servers. when rerun the same command the image is imported correctly

microk8s ctr image import file.tar

The OS is Ubuntu 20.04 lts

The command is perform from the tar directory or with a full path to the tar file.

Search and didn’t find any information about this issue.

Any idea what the problem or where to start the digging?

Haven’t tried this personally. Maybe you can try.

In short the answer was to use --digests=true

Thank you,

Tried it, and it work for most of the tars but failed on others

I run

microk8s ctr image import image.tar --digests=true
1 Like