Full description is empty for this repo.
The commands used for building,tagging and pushing the image were -
docker build -t sirishadocker/flaskwebserver:flaskws1 .
2 For tagging, the above command is the one used, the flaskws1 is the tag
For pushing the docker image to the hub,
docker push sirishadocker/flaskwebserver
The flask web server should be started as follows -
docker pull sirishadocker/flaskwebserver:flaskws1.
docker run -i -t sirishadocker/flaskwebserver:flaskws1
Open a second terminal and do the following -
you should see something like this -
sirishas-MBP:testContainer sg$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
021736ab572c sirishadocker/flaskwebserver:flaskws1 "/bin/bash" 16 seconds ago Up 15 seconds 5000/tcp jovial_pare
Now note the container name "jovial_pare" or whatever appears on the terminal output
and then do the following -
sirishas-MBP:testContainer sg$ docker inspect jovial_pare | grep "IPA"
Copy the IPAddress
and do the following -
Paste in the address field of the web browser -
You should see the output "Hello World" on the screen.