Export container configuration, then recreate it

Is there a way to export a container’s configuration, and then recreate it on another server from this file?

lxc config show NAME > out.yaml
lxc launch the-image NEW-NAME < out.yaml

As you can see, you still need to specify the image you want to create it from.
The rest of the config will be loaded from out.yaml.

1 Like

Thanks so much!