seawall stack run-as

Move a running stack onto its own user, seawall-<stack> (dry run until --yes).

Usage

seawall stack run-as [OPTIONS] [STACK]

Changes the host

Without --yes it prints the plan and changes nothing.

Arguments

<STACK>

The stack, by Portainer name or directory

Options

--undo

Put the last move back, from its owners record

--drop-ranges

Take back the subuid and subgid ranges its run user holds (every run user's without a stack)

--data-backed-up

Each database has a tested backup of yours: no restore-tested dump from the last 24h needed

--yes

Do it (without it, the plan only)

--diff

Show the compose diff, the env it touches, the host commands and every reader

--wait

After a redeploy, wait out the 2-minute compare with before. Without it the facts timer runs it (SeawallDeployWorse)

Every command also takes the global options.

Examples

seawall stack run-as ghost
seawall stack run-as ghost --yes
seawall stack run-as ghost --undo --yes
seawall stack run-as --drop-ranges --yes

Notes

Its data is re-owned with the stack stopped, in seawall's pinned helper, after every owner and mode is recorded; if it doesn't settle, all of it is put back.