Skip to main content

Docker Operations

Container management procedures for crocbot deployments, including image updates, rollback, and troubleshooting.

Quick Reference


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:
Then restart Docker daemon:

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