A basic counter docker container
1.1K
🧮 Just a container that counts. Forever. 🔁 Why? Because it can. 🤷♂️
This container runs a minimal shell script that counts upward in a loop. It prints a number, waits a bit, increments, and repeats — forever (or until stopped).
It’s great for:
| Variable | Description | Default |
|---|---|---|
start | The number to start counting from | 0 |
increment | The amount to increase each step | 1 |
delay | Seconds to wait between each count | 1 |
docker run --rm -e start=10 -e increment=2 -e delay=0.5 dekoeky/counter
# Sample Output:
# Counter: 10
# Counter: 12
# Counter: 14
# ...
If you want to build the dockerfile locally, you could use the following scripts
# Shell
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag vt6109/test:latest \
--push \
.
# PowerShell
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag vt6109/test:latest \
--push \
.
Content type
Image
Digest
sha256:00a319923…
Size
3.6 MB
Last updated
over 1 year ago
docker pull dekoeky/counter