Skip to content

MichaelYingEngineering/ECE444-F2020-Lab3

Repository files navigation

ECE444-F2020-Lab4&5

Michael Ying

Referenced from https://codefresh.io/docker-tutorial/hello-whale-getting-started-docker-flask/ Docker can be installed from https://docs.docker.com/get-started/

Activity 1

Completed the tasks

Activity 2

Steps to build and start the system:

  1. Clone this git repo and go to its location. The Dockerfile can be found in repo's root directory. alt text
  2. Run the command docker build -t ece444-f2020-lab3 . to build image alt text
  3. Run the container using command docker run -d -p 5000:5000 ece444-f2020-lab3 alt text
  • Screenshot of browser alt text
  • Docker image and container alt text alt text

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

Activity 3

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published