Sign inSign up

mulspace/hello

By mulspace

•Updated almost 8 years ago

Hello docker for web. It will run python web in port 5000 and print the system info.

Image
0

100K+

mulspace/hello repository overview

⁠dockerhello

Hello docker container for the test in docker/k8s/kong

⁠How to run

⁠Run it directly

docker run -itd --name hello -p 5000:5000 mulspace/hello

⁠Result of http://127.0.0.1:5000/a/b/c⁠
{
  "INSTANCE": "default", 
  "home": "/root", 
  "hostname": "72561db8dd0b", 
  "ip": "172.17.0.2", 
  "path": "a/b/c", 
  "uid": 0, 
  "username": "root"
}

⁠Run it with instance name

docker run -itd --name hello -p 5000:5000 -e INSTANCE=alpha mulspace/hello

⁠Result of http://127.0.0.1:5000/aaa/aaaa/bbb/ccc⁠
{
  "INSTANCE": "alpha", 
  "home": "/root", 
  "hostname": "72561db8dd0b", 
  "ip": "172.17.0.2", 
  "path": "aaa/aaaa/bbb/ccc", 
  "uid": 0, 
  "username": "root"
}

Then visit it by http://127.0.0.1:5000⁠

Tag summary

Content type

Image

Digest

Size

341.7 MB

Last updated

almost 8 years ago

docker pull mulspace/hello