seawall stray adopt

Bring it in as a stack (outside the stacks folder it moves in first).

Usage

seawall stray adopt [OPTIONS] <FOLDER>

Changes the host

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

Arguments

<FOLDER>

The folder, relative to the stacks folder or its full path

Required.

Options

--manager <MANAGER>

Its manager (default: the host's; compose where Portainer can't run it)

One of portainer, compose.

--start

Create and start it now (as stack new)

--no-start

Bring it in stopped (the default; under Portainer, created there and stopped at once)

--fix

Fix what seawall can first (restart always, no-new-privileges, cap_drop); the findings left come along

--accept-grants

With --start, accept the root grants it starts, writing each one's # seawall-lint: allow line, so later starts confirm with Enter

--yes

Carry it out (without it, a dry run)

--confirm <NAME>

With --start of one handed the host's root, the stack's name: confirms without a terminal

Every command also takes the global options.

Examples

seawall stray adopt ~/docker/projects/app
seawall stray adopt ~/docker/projects/app --manager compose --start --yes