Command Line Tools
wheels docker stop
wheels docker stop
Section titled “wheels docker stop”Unified Docker stop command for Wheels apps. Stops containers locally or on remote servers.
Synopsis
Section titled “Synopsis”wheels docker stop [options]Description
Section titled “Description”The wheels docker stop command halts running containers. It supports stopping containers locally or across multiple remote servers.
Centralized Configuration:
- Source of Truth: This command prioritizes settings from
config/deploy.ymlfor server lists and project names, ensuring you only stop the containers relevant to your current project.
Options
Section titled “Options”| Option | Description | Default |
|---|---|---|
--local | Stop containers on local machine | false |
--remote | Stop containers on remote server(s) | false |
--servers | Specific servers to stop (defaults to config/deploy.yml) | "" |
--removeContainer | Also remove the container after stopping | false |
Detailed Examples
Section titled “Detailed Examples”Local Management
Section titled “Local Management”Stop Services Stops the running containers but keeps them (and their logs/state) intact.
wheels docker stop --localStop and Cleanup Stops the containers and removes them. This is useful for a full reset or to free up names.
wheels docker stop --local --removeContainerRemote Management
Section titled “Remote Management”Stop All Remote Servers Halts the application on all configured servers. Useful for maintenance windows.
wheels docker stop --remoteStop Specific Servers Stops the application only on specific servers (e.g., taking a node out of rotation).
wheels docker stop --remote --servers=1Full Remote Cleanup Stops and removes containers on remote servers.
wheels docker stop --remote --removeContainerHow It Works
Section titled “How It Works”- Environment Detection: It checks for
docker-compose.yml. - Graceful Shutdown:
- Docker Compose: Runs
docker compose down. This stops and removes containers, networks, and volumes defined in the compose file. - Standard Docker: Runs
docker stop [container_name]. This sendsSIGTERMto the main process, allowing it to shut down gracefully.
- Docker Compose: Runs
- Removal (
--removeContainer):- If using standard Docker, this flag triggers
docker rm [container_name]after stopping. - If using Docker Compose,
downalready removes containers, so this flag is redundant but harmless.
- If using standard Docker, this flag triggers