labops docker¶
Manage Docker
Usage:
Options:
--help: Show this message and exit.
Commands:
stack: Manage Docker stacks
labops docker stack¶
Manage Docker stacks
Usage:
Options:
--node <str>: Match any node in the path (host, VM, or LXC name).--all: Target all stacks.--help: Show this message and exit.
Commands:
list: List all Docker stacks...deploy: Deploy a stack: copy its...update: Update stacks: pull the...sync: Sync a stack's local...
labops docker stack list¶
List all Docker stacks defined in the config, with the node each one runs on.
Reads the config only — nothing is contacted, so this does not show whether a stack is actually running.
Examples:
Usage:
Arguments:
stack_name: Stack name to target.
Options:
--node <str>: Match any node in the path (host, VM, or LXC name).--all: Target all stacks.--help: Show this message and exit.
labops docker stack deploy¶
Deploy a stack: copy its config to the node, then docker compose up -d.
One stack at a time — pass a name, or --node if the name is not unique.
Use sync to copy the files without starting anything, and update to pull
newer images for a stack that is already running.
Examples:
labops docker stack deploy homeassistant
labops docker stack deploy nginx-proxy-manager --node docker
Usage:
Arguments:
stack_name: Stack name to target.
Options:
--node <str>: Match any node in the path (host, VM, or LXC name).--all: Target all stacks.--help: Show this message and exit.
labops docker stack update¶
Update stacks: pull the latest images and recreate changed containers.
Unlike deploy/sync this accepts many stacks at once, so --all or --node
sweeps them. Config files are not re-copied; run sync or deploy when the
compose file itself changed.
Examples:
labops docker stack update --all
labops docker stack update --node home
labops docker stack update homeassistant
Usage:
Arguments:
stack_name: Stack name to target.
Options:
--node <str>: Match any node in the path (host, VM, or LXC name).--all: Target all stacks.--help: Show this message and exit.
labops docker stack sync¶
Sync a stack's local config_path files to its node, without deploying.
Nothing is started or restarted, so the running containers keep their
current config until you deploy. One stack at a time — pass a name, or
--node if the name is not unique.
Examples:
Usage:
Arguments:
stack_name: Stack name to target.
Options:
--node <str>: Match any node in the path (host, VM, or LXC name).--all: Target all stacks.--help: Show this message and exit.