LXC.PUBLISH(1)

πŸ“¦
version 5.21.6 Β· 3 versions
, in opensuse-leap 16.0

πŸ’… NAME πŸ’…

lxc-publish β€” publish instances as images ✨

okay so real quick, bestie β€” this page lives inside the LXD - Command line client(1) manual, and it's all about turning your instance into a shiny lil image. slay.


πŸŽ€ SYNOPSIS πŸŽ€

lxc publish [:][/] [:] [flags] [key=value...]

that's the whole vibe. flags, a couple of colon-slash situation things, and as many key=value pairs as your heart desires. periodt.


🌸 DESCRIPTION 🌸

Description:

Publish instances as images πŸ’–

like, yes, that's literally it β€” you take an instance and you publish it as an image. main character transformation arc, honestly. πŸ¦‹


✨ OPTIONS ✨

  • --alias=[] β€” a new alias you want to define at the target. iconic naming moment, your call. πŸŽ€
  • --compression="" β€” which compression algorithm to use. pass none if you want it uncompressed, no cap.
  • --expire="" β€” the image expiration date. format is rfc3339, so keep it cute and keep it compliant. πŸ“…
  • -f, --force[=false] β€” stop the instance if it's currently running. yes, it will stop it. that's the whole point. πŸ’€
  • --public[=false] β€” make the image public, meaning it's accessible to unauthenticated clients too. bestie, read that twice β€” unauthenticated clients as well. πŸ™ˆ
  • --reuse[=false] β€” if that image alias already exists, delete it and create a new one. out with the old, in with the new. πŸ”₯

🫢 OPTIONS INHERITED FROM PARENT COMMANDS 🫢

these ones come from the parent command, so they're just chilling here for reference:

  • --debug[=false] β€” show all debug messages. all of them. every last one. πŸ›
  • --force-local[=false] β€” force using the local unix socket.
  • -h, --help[=false] β€” print help. the classic. the icon. πŸ‘‘
  • --project="" β€” override the source project.
  • -q, --quiet[=false] β€” don't show progress information. silence is golden, ngl.
  • --sub-commands[=false] β€” use with help or --help to view sub-commands.
  • -v, --verbose[=false] β€” show all information messages. talk to me, tell me everything. πŸ’¬
  • --version[=false] β€” print version number.

🌈 SEE ALSO 🌈

  • lxc(1) β€” the mothership. go read that one too, iykyk. 🧚

πŸ’œ HISTORY πŸ’œ

  • 22-Aug-2026 β€” Auto generated by spf13/cobra.

okay and that's the page!! πŸ“ tiny little sign-off for the footer deets: this was Auto generated by spf13/cobra, dated Aug 2026, and it belongs to LXD - Command line client(1). mwah, go publish something gorgeous πŸ’…βœ¨

πŸ“¦ where this page comes from