Docker Operations
Container management procedures for crocbot deployments, including image updates, rollback, and troubleshooting.Quick Reference
| Operation | Command |
|---|---|
| Start | docker start crocbot |
| Stop | docker stop crocbot |
| Restart | docker restart crocbot |
| Logs | docker logs -f crocbot |
| Shell | docker exec -it crocbot sh |
| Status | docker ps -f name=crocbot |
Container Management
Viewing Container Status
Resource Usage
Container Inspection
Image Updates
Pull Latest Image
Update Running Container
Update with Docker Compose
Tag-Based Updates
Rollback Procedures
Identify Previous Version
Rollback to Previous Version
Emergency Rollback Script
Volume Management
List Volumes
Backup Volume
Restore Volume
Log Management
View Logs
Export Logs
Log Rotation (Docker daemon)
Configure in/etc/docker/daemon.json:
Troubleshooting
Container Won’t Start
Container Restarts Repeatedly
Out of Memory (OOM)
Network Issues
Disk Space
Health Checks
Docker Health Check
Configure in Dockerfile or compose:Check Health Status
Docker Compose Operations
Basic Commands
Example docker-compose.yml
Related Documentation
- Docker Installation - Initial Docker setup
- Docker Environment Variables - Configuration
- Startup and Shutdown - Start/stop procedures
- Health Checks - Health monitoring
