01.Container and Docker
01.Container and Docker
1
Table of Contents
1. Why use containers ? .................................................................................................4
2. Docker: A shipping container for code ........................................................................6
3. Benefits of using containers .......................................................................................7
4. Virtual machines versus containers ............................................................................8
5. Dev versus Ops ...........................................................................................................9
6. Docker mission ......................................................................................................... 11
7. Docker adoption....................................................................................................... 12
8. Docker basic concepts .............................................................................................. 13
9. Docker architecture .................................................................................................. 14
10. Docker Typical workflow ....................................................................................... 15
11. Docker shared and layered file systems technology .............................................. 16
2
What are containers?
3
1. Why use containers ?
In short, containers are small, agile, and portable, so they can help you
deploy and manage applications quickly, and scale up or down in
response to demand.
4
The challenge is this: you have all this stuff you need to deploy, and
there are so many ways to deploy it.
5
2. Docker: A shipping container for code
Now we are wrapping all that junk up inside the container together The
runtime versions … with the application
6
3. Benefits of using containers
In summary: So, why use containers? In short, containers are small, agile, and portable, so they can
help you deploy and manage applications quickly, and scale up or down in response to demand. In the
container deployment model, applications are not tied to specific host computers, so they can be
distributed across available resources in a more efficient way. This kind of environment is ideal for
deploying microservices.
7
4. Virtual machines versus containers
8
5. Dev versus Ops
9
Container ecosystem
10
6. Docker mission
Ship … now we need to get this work that was done in build and
replicate it out in potentially different environments different OS’s
11
7. Docker adoption
12
8. Docker basic concepts
• A Docker engine manages Docker hosts, can run locally, or in a cloud hosting
service.
13
9. Docker architecture
14
10. Docker Typical workflow
A typical workflow has you create images, pull them from the
repository, build, and run as containers.
15
11. Docker shared and layered file systems technology
• A union file system merges all the files for each image layer
together and presents them as a single directory at the union
mount point.
• Since each container has its own thin, writable layer, which stores
all changes, this means that multiple containers can share access
to the same image while maintaining their own data state.
16
Checkpoint questions
A. True
B. False
17
Checkpoint answers
1. TRUE
2. C
3. C
18