Referenced from https://codefresh.io/docker-tutorial/hello-whale-getting-started-docker-flask/ Docker can be installed from https://docs.docker.com/get-started/
Completed the tasks
Steps to build and start the system:
- Clone this git repo and go to its location. The Dockerfile can be found in repo's root directory.
- Run the command docker build -t ece444-f2020-lab3 . to build image
- Run the container using command docker run -d -p 5000:5000 ece444-f2020-lab3
Miscellaneous Commands:
- docker image ls - List images
- docker ps -a - List containers
- docker image rm (ID) - Remove images
- docker container stop (ID) - Stop containers
- docker container rm (ID) - Remove containers
Briefly summarize the differences between Docker and Virtual Machine:
Virtual Machines provide more isolation for systems but require much more resources than Dockers. This is because each system needs to be allocated its own set of resources in order for them to be isolated from the OS and other systems. Docker containers run on the host operating system and share its resources. Therefore, docker containers do not require the allocation of a lot of resources. However, they provide less isolation for systems. You can run many Docker containers on a host and it won't be taxing like VMs would be. VMs take longer to start up than Docker containers.