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
--undoPut the last move back, from its owners record
--drop-rangesTake back the subuid and subgid ranges its run user holds (every run user's without a stack)
--data-backed-upEach database has a tested backup of yours: no restore-tested dump from the last 24h needed
--yesDo it (without it, the plan only)
--diffShow the compose diff, the env it touches, the host commands and every reader
--waitAfter a redeploy, wait out the 2-minute compare with before. Without it the facts timer runs it (
SeawallDeployWorse)
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.