Usage
Flags
Sort containers by
service, machine, or health.Output
The command displays a table with:- SERVICE - Service name
- CONTAINER ID - First 12 characters of the container ID
- CONTAINER NAME - Full container name
- IMAGE - Container image
- CREATED - How long ago the container was created
- STATUS - Container status (color-coded)
- IP ADDRESS - Cluster IP address
- MACHINE - Machine hosting the container
Examples
List all containers
Sort by machine
Sort by health
Status Colors
Container status is color-coded:- Green - Healthy
- Red - Unhealthy, dead, or OOM killed
- Yellow - Starting, stopped, or other non-critical states
- White - Running (no health check)
Understanding the Output
Container Status
Common statuses:- Up X hours - Running normally
- Up X hours (healthy) - Running and passing health checks
- Up X hours (starting) - Running but health checks haven’t passed yet
- Up X hours (unhealthy) - Running but failing health checks
- Exited (0) - Stopped successfully
- Exited (1) - Stopped with error
- Restarting - Being restarted
IP Address
The cluster-internal IP address. Containers can communicate directly using these IPs or via service names.Container Distribution
See how replicas are distributed across machines:Use Cases
Monitor Deployments
After deploying, check that containers are running:Debug Issues
Find unhealthy containers:Check Distribution
Verify containers are spread across machines:Get Container IDs
Find a container ID foruc exec:
Verify Scaling
After scaling, confirm replica count:Filtering Output
Use standard Unix tools to filter:Show only one service
Show containers on one machine
Count containers per service
Find specific container
Related Commands
uc service ls- Service-level view (less detail)uc service logs- View container logsuc service exec- Execute commands in containersuc images- List images used by containers
