Changes
Container Auto-Detection
If the specified container name is not found, the script now:
- Searches for containers with "crowdsec" in the name
- Checks each container for the
csclicommand - Uses the first valid CrowdSec container found
- Shows a warning with the detected name so you can update your config
Better Error Messages
When container detection fails, you now see:
- List of all available containers
- Common Docker Compose naming patterns
- Step-by-step troubleshooting guide
- Example command with correct syntax
Example Output
[ERROR] Cannot find CrowdSec container 'crowdsec'
Available containers:
mystack_crowdsec_1 (crowdsecurity/crowdsec:latest)
nginx (nginx:alpine)
Troubleshooting:
1. Find your CrowdSec container: docker ps | grep -i crowdsec
2. Set the correct name: -e CROWDSEC_CONTAINER=your_container_name
Full Changelog: v1.0.2...v1.0.3