Official Images
Vector publishes several image variants:timberio/vector:latest-alpine- Alpine Linux (smallest, ~50MB)timberio/vector:latest-debian- Debian (full-featured, ~150MB)timberio/vector:latest-distroless-libc- Distroless with libc (secure, ~80MB)timberio/vector:latest-distroless-static- Distroless static (most secure, ~70MB)
Quick Start
Run with default configuration
Run with custom configuration
Image Details
Alpine Image
Smallest image, ideal for resource-constrained environments. Dockerfile: (from source)Debian Image
Full-featured image with more tools available. Dockerfile: (from source)Distroless Images
Minimal images for enhanced security (no shell, no package manager). Usage:Configuration
Using Environment Variables
Using Config File
Createvector.yaml:
Docker Compose
Simple Agent
Agent + Aggregator Stack
Complete Observability Stack
Running Vector in Docker
Collecting Docker Logs
Collecting Host Logs
Best Practices
Security
- Use distroless images in production for smaller attack surface
- Run as non-root user when possible
- Mount configuration files as read-only (
:ro) - Use Docker secrets for sensitive credentials
- Limit socket access to read-only when collecting Docker logs