Sign inSign up

kentalk/helloweb

By kentalk

•Updated over 3 years ago

Image
0

291

kentalk/helloweb repository overview

⁠Introduction

A lightweight Docker image for testing.

⁠Features
  • Starts an HTTP server listening on port 8000.
  • Utilizes Redis to count requests.
  • Logs request information to the local disk.
  • Response includes: "Hello, World", total views, host, environment, and more.

⁠Examples

⁠Run without Redis
docker run -d --name myweb -p 8000:8000 kentalk/helloweb:latest
⁠Run with Redis

1、Run with Redis container

docker run -d --name myweb -p 8000:8000 \
--link your-redis-container-name:redis \
kentalk/helloweb:latest

2、Run with Redis remote

docker run -d --name myweb -p 8000:8000 \
--add-host redis:192.168.1.100 \
kentalk/helloweb:latest

⁠Remark

⁠reference

https://ken.io/note/docker-swarm-service-deploy-and-manage⁠

Tag summary

Content type

Image

Digest

sha256:3a890c727…

Size

297.5 MB

Last updated

over 3 years ago

docker pull kentalk/helloweb