🐙 GitHub Repository: albertrodriguezdev/docker-hello-world-web
🐳 Docker Hub Image: albertrodriguezdev/hello-world-web
A lightweight Docker HTTP web server container exposing port 8080 and returning a simple "Hello World" response.
Ideal as a simple Docker example image, lightweight HTTP test container, or minimal web server for demos and workshops.
No configuration required — just run and open your browser.
hello-world-web is a tiny containerized web server that:
- Exposes port
8080 - Returns:
Hello World from Docker! 🚀
It is intentionally small, predictable, and easy to run in any Docker environment.
Works out of the box with Docker Desktop and any modern Docker installation.
Use the prebuilt image published on Docker Hub.
Clone this repository and run:
docker compose upThen open:
Stop with:
Ctrl + Cdocker run -p 8080:8080 albertrodriguezdev/hello-world-webTo use a different host port:
docker run -p 3000:8080 albertrodriguezdev/hello-world-webThen open in your browser:
http://localhost:8080(default port mapping:-p 8080:8080)http://localhost:3000(if you used-p 3000:8080)
Stop with:
Ctrl + CBuild the image:
docker build -t hello-world-web .Run the container:
docker run -p 8080:8080 hello-world-webTo use a different host port:
docker run -p 3000:8080 hello-world-webThen open in your browser:
http://localhost:8080(default port mapping:-p 8080:8080)http://localhost:3000(if you used-p 3000:8080)
Stop with:
Ctrl + Ccurl http://localhost:8080Response:
Hello World from Docker! 🚀
.
├── Dockerfile
├── docker-compose.yml
├── app.py
├── LICENSE
└── README.md
Defines how the image is built and how the server starts.
Defines the local service configuration and port publishing.
Minimal Flask-based HTTP server returning "Hello World".
Simple, predictable, and ready to use.