How do I enable image auto-updating in LXD?

Solution 1:

You can enable auto-update on a per-image basis by editing the config with

lxc image edit <img>

and setting auto_update: true as a top-level item in the config

Solution 2:

Information about LXD image handling can be found here, in the docs.

When you disable image auto-update using lxd init, the consequence can be seen by running lxc config show:

$ lxc config show
config:
  images.auto_update_interval: "0"

To reset to the default (update the images every six hours), this can be unset as follows:

$ lxc config unset images.auto_update_interval