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.

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 help

boot 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 help

Exemplos

Persistir os que correm agora
delonix net boot enable

boot 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 help

Exemplos

Ver o que está instalado
delonix net boot status

boot 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 help

Exemplos

Remover as units de boot
delonix net boot disable

Laborató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 web

Make 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 web

DesafioChallenge

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.