Sign inSign up

tyanick237/hello-node

By tyanick237

•Updated 4 months ago

First Docker lab — minimal Node.js HTTP server containerized for the SRE portfolio.

Image
0

51

tyanick237/hello-node repository overview

⁠Lab 01 — Hello Node Containerization

First Docker lab. Containerizes a minimal Node.js HTTP server.

⁠What it demonstrates

  • Writing a Dockerfile from scratch
  • Building an image with docker build
  • Running a container with port mapping
  • Inspecting a running container with docker logs, inspect, exec
  • Pushing the image to Docker Hub

⁠Image on Docker Hub

docker pull YOUR_DOCKERHUB_USERNAME/hello-node:1.0

⁠Run it

docker run -d -p 3000:3000 --name hello-node YOUR_DOCKERHUB_USERNAME/hello-node:1.0
curl http://localhost:3000

Tag summary

Content type

Image

Digest

sha256:70b4aaef7…

Size

46.1 MB

Last updated

4 months ago

docker pull tyanick237/hello-node:1.0