The intention of this project is to teach you the basics of building a docker app.
A Dockerfile is a simple text file that contains a list of commands that the Docker client calls while creating an image. It's a simple way to automate the image creation process. The best part is that the commands you write in a Dockerfile are almost identical to their equivalent Linux commands. This means you don't really have to learn new syntax to create your own dockerfiles.
docker build -t yourusername/catnip:1.0.0 .
docker image ls
docker run -p 8888:5000 yourusername/catnip:1.0.0
# check that its running
docker psOnce running try to access the application at http://localhost:8888/
This docker image exist locally in the docker engine if you want to share it with others or use it as part of automation or a deployment to cloud it must be stored on a publicly available registry so that it can be accessed.
Note this could just as easily be a private coporate reposiroty instead of the public docker hub
docker login
docker push yourusername/catnipNow log on to Docker Hub and see that your image is there you can now pull this image