LXD makes it easy to move containers around. LXD expects the new host to be completely setup along with the resources the guest requires or the copy will not proceed.
1
2
3 # destination
lxc config set core.https_address 192.168.0.1:8443
lxc config set core.trust_password YourPassword
1
2
3
4 # source
lxc remote add NewHost 19.168.0.1:8443
lxc copy ContainerName NewHost:ContainerName --mode="push"
# WARNING: do not ctrl-c the copy it will mess up the host LXD and must be reinstalled.