Interrupted publish operation

I have accidentally interrupted lxc publish vm operation. Do I need to recreate the container or virtual machine from scratch and make an image from it or just running again lxc publish vm will be fine? Does lxc publish operation affect container or virtual machine?

Running lxc publish should be fine. It’s also worth noting that it’s not an interruptible operation, so if all that happened is that you ctrl+c the lxc publish command or closed that terminal, there’s a good chance LXD still processed the request in the background and published an image for you.

So worth a look at lxc image list.