docker_stack_action
Run Docker Compose actions such as up, pull, build, restart, or down on a specific stack, with confirmation required for destructive operations.
Instructions
Run a Compose action on one stack.
action: up (create/start, same as docker compose up -d), pull (get new images), update (pull then up), start, stop, restart, build (build the images the compose file builds itself), build_no_cache, up_build (build then up), recreate (up with --force-recreate). These need confirm=true. down (removes the containers and network, keeps volumes) and down_volumes (also removes the stack's volumes) are destructive and also
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| stack | Yes | ||
| action | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |