Skip to content

Simple docker project for displaying the container id as hostname, with versions!

Notifications You must be signed in to change notification settings

stephenatwell/hostname

 
 

Repository files navigation

Login to your registry (e.g. hub.docker.com by default)

docker login username: xxxx password: xxxx

Build the image

docker build --build-arg VERSION=v1 . -t {username}/hostname:v1

Push the image

docker push -t {username}/hostname:v1

Run the image:

docker run --rm --name hostname -p 8080:80 -d rstarmer/hostname:v1

Test that the image works:

curl http://localhost:8080

Stop the running instance:

docker stop hostname

Clean up the local build/run environment:

docker rmi rstarmer/hostname:v1 docker rmi nginx:latest

About

Simple docker project for displaying the container id as hostname, with versions!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Mustache 40.3%
  • HCL 29.0%
  • Shell 27.2%
  • Dockerfile 3.5%