lxc rebuild

Rebuild instances

Synopsis

Description: Wipe the instance root disk and re-initialize. The original image is used to re-initialize the instance if a different image or –empty is not specified.

Note: The –project flag sets the project for both the image remote and the instance remote. If the image remote is a public remote (e.g. simplestreams) then this project is ignored by the image remote. If the image remote is another LXD server, specify the source project for the image remote with –project and the instance remote with –target-project (if different from –project).

lxc rebuild [<remote>:]<image> [<remote>:]<instance> [flags]

Options

      --empty            Rebuild as an empty instance
  -f, --force            If an instance is running, stop it and then rebuild it
      --target-project   Project containing the instance (if different from --project)

Options inherited from parent commands

      --debug          Show all debug messages
      --force-local    Force using the local unix socket
  -h, --help           Print help
      --project        Override the source project
  -q, --quiet          Don't show progress information
      --sub-commands   Use with help or --help to view sub-commands
  -v, --verbose        Show all information messages
      --version        Print version number

SEE ALSO

  • lxc - Command line client for LXD