https://github.com/riprsa/debug-container
🐳🔧 A tiny debug Docker image
https://github.com/riprsa/debug-container
docker docker-compose go
Last synced: about 2 months ago
JSON representation
🐳🔧 A tiny debug Docker image
- Host: GitHub
- URL: https://github.com/riprsa/debug-container
- Owner: riprsa
- Created: 2024-04-02T12:23:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T14:32:40.000Z (about 2 years ago)
- Last Synced: 2024-04-02T15:26:18.128Z (about 2 years ago)
- Topics: docker, docker-compose, go
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🐳🔧 A tiny debug Docker image

## Overview
Less than 10MB image for debug purposes. You can use this image to create tens of containers while exploring Traefik or similar systems.
### Setup
Docker Compose
```yml
services:
debug_container:
image: ghcr.io/riprsa/debug-container:latest
ports:
- "80:8081"
environment:
# PORT of inner HTTP server. Default value is ":80"
- PORT=:8081
# other Compose properties that you would like to use
```
By default, the container assumes its ID via `HOSTNAME`. However, you can override it. [Read more](https://docs.docker.com/network/#ip-address-and-hostname)
### Usage
You can use an HTTP client to make a request to the container. It sends an HTML page for GET requests and JSON for other methods. JSON signtaure is:
```json
{
"container_id": "your_container_id"
}
```