Build the image
docker build . -t hostname docker tag hostname:localhost hostname:v1
Run the image:
docker run --rm --name hostname -p 8080:80 -d rstarmer/hostname
Test that the image works:
Stop the running instance:
docker stop hostname
Clean up the local build/run environment:
docker rmi rstarmer/hostname:v1