A lightweight, real-time Docker container log viewer with a modern web UI.
1.1K
A lightweight, real-time Docker container log viewer with a modern web interface.
docker run -d \
--name containerscope \
-p 4000:4000 \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-e CONTAINER_SCOPE_PASSWORD=your_secure_password \
pythonicvarun/containerscope:latest
Then open http://localhost:4000ā and login with:
admin (default)Requirements:
# Clone the repository
git clone https://github.com/PythonicVarun/containerscope.git
cd containerscope
# Build the binary
go build -o containerscope ./cmd/containerscope
# Run (requires access to Docker socket and password)
CONTAINER_SCOPE_PASSWORD=your_secure_password ./containerscope
| Environment Variable | Default | Description |
|---|---|---|
CONTAINER_SCOPE_PORT | 4000 | HTTP server port |
CONTAINER_SCOPE_USERNAME | admin | Login username |
CONTAINER_SCOPE_PASSWORD | required | Login password (must be set) |
CONTAINER_SCOPE_SECURE_COOKIES | false | Set to true when using HTTPS |
containerscope/
āāā cmd/containerscope/ # Application entry point
āāā internal/
ā āāā app/ # HTTP server and handlers
ā āāā auth/ # Authentication and session management
ā āāā dockerapi/ # Docker API client
ā āāā ws/ # WebSocket handling
āāā public/ # Static web UI assets
ContainerScope uses secure session-based authentication:
All API endpoints and WebSocket connections require authentication. The login page is the only publicly accessible route.
http://localhost:4000ContainerScope requires read-only access to the Docker socket (/var/run/docker.sock). This is necessary to:
Important:
CONTAINER_SCOPE_PASSWORD environment variable.CONTAINER_SCOPE_SECURE_COOKIES=true when deploying behind HTTPS.Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/amazing-feature)git commit -m 'feat: add some amazing feature')git push origin feature/amazing-feature)Please make sure to update tests as appropriate.
This project is licensed under the MIT License - see the LICENSEā file for details.
Content type
Image
Digest
sha256:0a88e75b3ā¦
Size
2.8 MB
Last updated
6 months ago
docker pull pythonicvarun/containerscope