LXD has no such logic. Currently the Ubuntu Cloud images are configured in such a way that a container copy is considered as new instance creation which triggers cloud-init.
This was done at the recommendation of the cloud-init maintainer so I'm re-assigning this bug to cloud-init to either have cloud-init be less aggressive in such case or to revert the decision to have it run on container copies. ** Package changed: lxd (Ubuntu) => cloud-init (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579981 Title: LXD overwrites /etc/apt/sources.list during 'lxc image copy' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1579981/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs