Small bash web server that displays the current date
Build the server: docker build -t bash-webserver .
Execute the server: docker run -d -p 80:8080 bash-webserver
➜ ~ docker run -d -p 80:8080 server
GET / HTTP/1.1
Host: localhost
User-Agent: curl/7.77.0
Accept: */*
Check the server: curl localhost:80
➜ ~ curl localhost
<html>
<body>
<h1> Current date is: Sun Jan 9 04:21:47 UTC 2022 </h1>
</body>
</html>
docker pull docker.io/elulcao/bash-webserver:latest
Content type
Image
Digest
Size
50.9 MB
Last updated
over 4 years ago
docker pull elulcao/bash-webserver