Pushing files to colima

I tried incus file push local-file $instance/path/to/file and got a file not found error.

this makes sense, as I expect there needs to be a workaround to expose host files to colima.

so i switched to cat’ing the file and using stdin, hoping the incus cli would ferry it through.

still got the same error. even with verbose, it did not mention what file was missing.

what did it, was adding –create-dirs, which was counter-intuitive. Is there a way to find out which file is missing from logs or with the –verbose option? Or is there a better way?

I would’ve assumed the file is being pushed from your macOS host, not the VM. I may be wrong.

Yeah, if a directory is missing in the destination file path, you get that error. I experienced it as well.

maybe worth it for me to open an issue ‘better error message when destination or source file does not exist’ or something like that

1 Like