Create LXC Image from a Existing LXC Contianer

I have a sample LXC Container (Whose OS is Centos 7), I have installed Mongo in that LXC Container.
Now at this instance, I want to make that LXC Container With Mongo as a separate LXC Image. How can i do that?

I think lxc publish is what you need to look at

lxc publish --help will give you a first idea how this works

1 Like