An application providing a simple welcome service with basic health monitoring capabilities.
1.1K
š³ Docker Hub Repository: pplx/hello-app
A containerized Node.js Express application providing a simple welcome service with health monitoring capabilities.
node:24-alpine8080# Pull the latest image
docker pull pplx/hello-app
# Run the container
docker run -d -p 8080:8080 --name hello-app pplx/hello-app
# Access the application
curl http://localhost:8080
# Run with custom name
docker run -d -p 8080:8080 -e NAME="Docker User" --name hello-app pplx/hello-app
# Run with custom port mapping
docker run -d -p 3000:8080 --name hello-app pplx/hello-app
| Variable | Description | Default Value | Example |
|---|---|---|---|
PORT | Internal container port | 8080 | PORT=8080 |
NAME | Custom greeting name | "" (empty) | NAME="John Doe" |
Clone the repository
git clone https://github.com/VishwaGullapalli/hello-app.git
cd hello-app
Build the Docker image
# Build with default tag
docker build -t hello-app .
# Build with custom tag
docker build -t myusername/hello-app:v1.0.0 .
Run the built image
docker run -p 8080:8080 hello-app
FROM node:24-alpine # Lightweight Alpine Linux base with Node.js 24
EXPOSE 8080 # Expose port 8080 for external access
WORKDIR /app # Set working directory
COPY package*.json ./ # Copy package files for dependency installation
RUN npm install # Install dependencies
COPY . . # Copy application source code
ENV PORT=8080 # Set default port
ENV NAME="" # Set default empty name
CMD ["npm", "start"] # Start the application
The container includes a built-in health check endpoint:
# Check application health
curl http://localhost:8080/health
# Expected response:
# {"status":"OK","message":"Application is running"}
Add health check to your docker run command:
docker run -d \
--name hello-app \
--health-cmd="curl -f http://localhost:8080/health || exit 1" \
--health-interval=30s \
--health-retries=3 \
--health-start-period=5s \
-p 8080:8080 \
pplx/hello-app
# View running containers
docker ps
# View container logs
docker logs hello-app
# Execute commands in running container
docker exec -it hello-app sh
# Stop the container
docker stop hello-app
# Remove the container
docker rm hello-app
# Remove the image
docker rmi pplx/hello-app
Port Already in Use
# Use different port mapping
docker run -p 8081:8080 username/hello-app
Container Won't Start
# Check logs
docker logs hello-app
# Check if image exists
docker images | grep hello-app
Cannot Access Application
# Verify port mapping
docker port hello-app
# Check container status
docker ps -a
| Version | Date | Changes |
|---|---|---|
| v1.0.0 | 2025-06-01 | Initial release |
š³ Ready to containerize your applications? Pull this image and see Docker in action!
Content type
Image
Digest
sha256:bd862ba79ā¦
Size
55.9 MB
Last updated
over 1 year ago
docker pull pplx/hello-app