Sign inSign up

chucknelson01/docker-hello-world

By chucknelson01

•Updated over 8 years ago

Simple Hello World Example

Image
0

68

chucknelson01/docker-hello-world repository overview

⁠NGINX Hello World Image

⁠Purpose

This image is used to demonstrate a simple Hello World Docker image using NGINX. It serves up a single HTML page that shows the hostname of the container.

⁠Usage

Start the container and publish port 80 to some port on the host.

REGISTRY=YOUR_DOCKER_HUB_USERNAME
docker build --rm -t ${REGISTRY}/docker-hello-world .
docker run -d -p 80 ${REGISTRY}/docker-hello-world
docker push ${REGISTRY}/docker-hello-world

NOTE: Replace YOUR_DOCKER_HUB_USERNAME above with your own Docker Hub username.

Tag summary

Content type

Image

Digest

Size

15.9 MB

Last updated

over 8 years ago

docker pull chucknelson01/docker-hello-world