pipeline down
Overview
Stop the execution of your local pipeline
Aliases: down
Usage:
Options:
--directory <directory>
: If specified, it will use that directory instead of the current one--keep-broker
: Keep the local broker running--volumes
: When specified it prunes the volumes
How It Works
The quix pipeline down
command stops and removes all the Docker containers defined in your compose.local.yaml
file. It acts as a shortcut for the docker compose down
command, ensuring that all running services are stopped and all associated containers, networks, and volumes are removed.
When executed, this command performs the following steps:
- Stops Running Containers: It stops all containers that were started as part of your pipeline.
- Removes Containers: After stopping the containers, it removes them from your Docker environment.
- Removes Networks and Volumes: Finally, it removes the Docker networks and volumes associated with the pipeline, ensuring a clean state.
This process ensures that your environment is clean and ready for the next time you need to start the pipeline. For more details on how the docker compose down
command works, refer to the official Docker documentation.
Warning
Ensure that Docker is running before executing this command. If Docker is not running, the command will fail. You can verify Docker is running by executing the following command:
Example usage
Shutting Down the Pipeline with Docker Compose
To stop and remove all the containers defined in your compose.local.yaml
file, use the following command:
Tip
The --keep-broker
option allows you to keep the local broker running while stopping and removing the other containers. This is useful if you need the broker to remain active for other purposes like using it for local as your SDK broker configuration.
In practice, this command is a shortcut for docker compose down
. It stops all running services and removes the containers, networks, and volumes associated with the Docker Compose configuration.
For example:
Executing 'docker compose down'
Container githubrepo-console-1 Stopping
Container githubrepo-event-detection-transformation-1 Stopping
Container githubrepo-demo-data-source-1 Stopping
Container githubrepo-kafka-broker-1 Stopping
Container githubrepo-event-detection-transformation-1 Stopped
Container githubrepo-event-detection-transformation-1 Removing
Container githubrepo-demo-data-source-1 Stopped
Container githubrepo-demo-data-source-1 Removing
Container githubrepo-event-detection-transformation-1 Removed
Container githubrepo-demo-data-source-1 Removed
Container githubrepo-console-1 Stopped
Container githubrepo-console-1 Removing
Container githubrepo-console-1 Removed
Container githubrepo-kafka-broker-1 Stopped
Container githubrepo-kafka-broker-1 Removing
Container githubrepo-kafka-broker-1 Removed
Network githubrepo_default Removing
Network githubrepo_default Removed
This ensures that your environment is clean and ready for the next time you need to start the pipeline.