Tiny Docker container responding to any request with a minimal HTTP 404 (or other) response.
docker run -d -p 80:80 weibell/tiny404Equivalent docker-compose.yml file:
version: "3"
services:
web:
image: weibell/tiny404
ports:
- "80:80"| Variable | Default | Possible Values |
|---|---|---|
STATUS_CODE |
404 |
200, 401, 403, 404, 500 |
BODY |
"" |
arbitrary |
Example:
docker run -d -p 80:80 -e STATUS_CODE=403 -e BODY="403\nForbidden" weibell/tiny404Equivalent docker-compose.yml file:
version: "3"
services:
web:
image: weibell/tiny404
ports:
- "80:80"
environment:
- STATUS_CODE=403
- BODY="403\nForbidden"