| title | Docker Management |
|---|---|
| description | Manage Docker containers and images |
Visory provides a comprehensive interface for managing Docker containers and images across multiple Docker daemon connections.
The Docker management feature allows you to:
- Connect to multiple Docker daemons
- View, create, and manage containers
- Monitor container statistics in real-time
- Manage Docker images
| Action | Permission |
|---|---|
| View containers/images | docker_read |
| Create containers | docker_write |
| Start/Stop/Restart | docker_update |
| Delete containers/images | docker_delete |
Navigate to Docker in the sidebar (requires docker_read permission).
Visory supports multiple Docker daemon connections. Each client represents a connection to a Docker daemon (local or remote).
The Docker page displays all available Docker clients with their connection status.
The container grid displays all containers with:
- Container name
- Image
- Status (running, stopped, etc.)
- Created date
- Port mappings
Click on a container to view detailed information:
- Full container ID
- Image and command
- Environment variables
- Network settings
- Mount points
- Resource limits
- Click Create Container
- Select the Docker client
- Choose an image from available images
- Configure container settings:
- Name
- Port mappings
- Environment variables
- Volume mounts
- Click Create
| Action | Description | Permission |
|---|---|---|
| Start | Start a stopped container | docker_update |
| Stop | Stop a running container | docker_update |
| Restart | Restart a container | docker_update |
| Delete | Remove a container | docker_delete |
Click the logs icon to view container output. Logs can be:
- Streamed in real-time
- Downloaded as a file
Real-time statistics are available for running containers:
- CPU usage
- Memory usage
- Network I/O
- Block I/O
The images section displays all available Docker images with:
- Repository and tag
- Image ID
- Size
- Created date
Select an image and click Delete to remove it. Note that images in use by containers cannot be deleted.
GET /api/docker
Returns list of available Docker clients.
| Endpoint | Method | Description |
|---|---|---|
/api/docker/:clientId/containers |
GET | List containers |
/api/docker/:clientId/containers/:id |
GET | Inspect container |
/api/docker/:clientId/containers/:id/stats |
GET | Get container stats |
/api/docker/:clientId/containers/:id/stats/stream |
GET | Stream stats (SSE) |
/api/docker/:clientId/containers/:id/logs |
GET | Get container logs |
/api/docker/:clientId/containers |
POST | Create container |
/api/docker/:clientId/containers/:id/start |
POST | Start container |
/api/docker/:clientId/containers/:id/stop |
POST | Stop container |
/api/docker/:clientId/containers/:id/restart |
POST | Restart container |
/api/docker/:clientId/containers/:id |
DELETE | Delete container |
| Endpoint | Method | Description |
|---|---|---|
/api/docker/:clientId/images |
GET | List images |
/api/docker/:clientId/images/:id |
DELETE | Delete image |
| State | Description |
|---|---|
created |
Container created but not started |
running |
Container is running |
paused |
Container is paused |
restarting |
Container is restarting |
removing |
Container is being removed |
exited |
Container has stopped |
dead |
Container is dead |
- Use meaningful names: Give containers descriptive names for easy identification
- Set resource limits: Configure memory and CPU limits to prevent resource exhaustion
- Clean up unused images: Regularly remove unused images to save disk space
- Monitor statistics: Keep an eye on resource usage for running containers
- Use health checks: Configure container health checks for reliability