delonix net boot
Persistência no arranque: units systemd para os containers voltarem a subir no boot.
Boot persistence: systemd units so containers come back up after a reboot.
boot enable gera uma unit systemd por container em execução (rootless →
user units + loginctl enable-linger; root → system units), com ExecStart
=container start. Assim os containers voltam a subir quando o host arranca, sem daemon.
boot enable generates one systemd unit per running container
(rootless → user units + loginctl enable-linger; root → system units), with
ExecStart=container start. So containers come back up when the host
boots, with no daemon.
📄 Implementação real em Rust: cmd/boot.rs
Usage: dlx net boot [OPTIONS] <COMMAND>
Commands:
enable Install + enable systemd units for the RUNNING containers, so they come back up when the host boots. Rootless uses user units + linger
disable Disable + remove the generated boot units
status Show boot-persistence status (installed units + mode)
help Print this message or the help of the given subcommand(s)
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helpboot enable
Install + enable systemd units for the RUNNING containers, so they come back up when the host boots. Rootless uses user units + linger
Usage: dlx net boot enable [OPTIONS]
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
--restart <RESTART> Restart policy baked into the units (`no|on-failure[:max]|always|unless-stopped`) [default: always]
-h, --help Print helpExemplos
delonix net boot enableboot status
Show boot-persistence status (installed units + mode)
Usage: dlx net boot status [OPTIONS]
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helpExemplos
delonix net boot statusboot disable
Disable + remove the generated boot units
Usage: dlx net boot disable [OPTIONS]
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helpExemplos
delonix net boot disableLaboratórioLab
Faz um container sobreviver a um reboot do host, sem daemon nenhum a vigiá-lo.
delonix container run -d --name web nginx
delonix net boot enable web
delonix net boot status webMake a container survive a host reboot, with no daemon watching over it.
delonix container run -d --name web nginx
delonix net boot enable web
delonix net boot status webDesafioChallenge
Em rootless, confirma que a unit gerada é uma user unit
(não system) e que loginctl enable-linger ficou activo para a tua conta — sem isso a
unit nunca arrancaria antes do login.
In rootless mode, confirm the generated unit is a user unit
(not a system one) and that loginctl enable-linger got enabled for your account —
without it, the unit would never start before login.