This is a simple image to create a container with a running web server on port 80
100K+
Author: Mariusz Sabath Email: [email protected] Description: this is a simple Dockerfile to create a container with a running web server on port 80 The response from the container returns the container hostname name and the TEST parameter value passed as an environment variable
docker run -d --name WEB -e TEST=MyTest1 -p 8081:80 mrsabath/web-ms
expected result [after 30 seconds (for web-ms:v1 and v2) or 5 seconds (web-ms:v3 or latest) wait delay]:
curl http://localhost:8081
<html><head><title>Hello World</title></head><body><h2>Hostname: e684a1dbcbcb
</h2><h2>TEST: MyTest1</h2></body></html>
Content type
Image
Digest
Size
83.6 MB
Last updated
over 8 years ago
docker pull mrsabath/web-ms