Use Hello World Dockerfile here
Save it to your current directory
Use the Hello World html page here
(You can just have one line <h1>Hello World</h1>)
docker build -t nginx:with_website_v0 .
docker images
Our newly created image is present
docker login
Enter your credentials
docker tag <image_id> <username>/nginx:with_website_v0
docker push <username>/nginx:with_website_v0
Go to your repository :)
docker rmi <username>/nginx:with_website_v0
docker pull <username>/nginx:with_website_v0
If you already have an nginx image in you local, observe the layer optimization which we learnt in previous section
docker run -d -p 8091:80 --name my_container <username>/nginx:with_website_v0
Hello World html is exposed
Similar to the hello_wold_app, there are files for simple_app with all required elements here
Try creating your own image and push to your repo and run a container using it and expose a port
Check what is shows !!! :)