How to export LXC container as image/tarball

LXD have cli command to publish LXC container as image.
If there are solution to export LXC container as image or tarball ?
Or how to setup LXC image server ? Like https://us.images.linuxcontainers.org/
Thanks.

You should check the lxc image export command.

When you run lxd init, it asks if you want LXD to be accessible remotely.
By doing so, your LXD installation is just like https://us.images.linuxcontainers.org/

Run also
lxc remote list
and read https://stgraber.org/2016/04/12/lxd-2-0-remote-hosts-and-container-migration-612/

lxc image xxx is LXD container/image command. I want to use LXC container instead of LXD container.

I think you’re talking about LXD instance, but I wanted is LXC instance. Or I have misunderstanding for LXC/LXD container?

Indeed, the ‘lxc’ command is for LXD only.
What you are trying to do, are already available in LXD. The purpose of LXD is to make easier the tasks of LXC 1.0.
I cannot help with LXC 1.0.

Hi Simos,
How about LXC 2.0 ?