demov2
Running the server in a container
Terminal 1
Build the image, launch a container:
docker build -t demo .
docker run --name demo --rm -it -p 8080:8080 demoOutput
server listening on :8080Terminal 2
curl localhost:8080Output
<h1>hello world</h1>Check logs
docker logs demoOutput
server listening on :8080
GET / 200 1.488 ms - 20Terminal 1
Last updated