Sign inSign up

elulcao/bash-webserver

By elulcao

•Updated over 4 years ago

Image
0

267

elulcao/bash-webserver repository overview

Small bash web server that displays the current date

⁠Usage

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>

⁠Install from the command line

⁠Docker Hub
docker pull docker.io/elulcao/bash-webserver:latest

Tag summary

Content type

Image

Digest

Size

50.9 MB

Last updated

over 4 years ago

docker pull elulcao/bash-webserver