Sign inSign up

dekoeky/counter

By dekoeky

Updated over 1 year ago

A basic counter docker container

Image
Developer tools
0

1.1K

dekoeky/counter repository overview

⏲️dekoeky/counter

🧮 Just a container that counts. Forever. 🔁 Why? Because it can. 🤷‍♂️

📖 What is This?

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:

  • Simulating long-running processes
  • 🧪 Debugging container behavior
  • 📡 Testing logging systems
  • 🧰 Demonstrating container basics (shell, signals, PID 1)
  • 🧱 Demonstrating multi-arch builds
  • 😴 Watching numbers change instead of working

⚙️ Environment Variables

VariableDescriptionDefault
startThe number to start counting from0
incrementThe amount to increase each step1
delaySeconds to wait between each count1

▶️ Example

docker run --rm -e start=10 -e increment=2 -e delay=0.5 dekoeky/counter
# Sample Output:
# Counter: 10
# Counter: 12
# Counter: 14
# ...

Building Locally

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 \
  .

References

Docker - Multi-Platform


Docker Pulls Image Size Build

Tag summary

Content type

Image

Digest

sha256:00a319923

Size

3.6 MB

Last updated

over 1 year ago

docker pull dekoeky/counter