-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
981 additions
and
950 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Docker | ||
|
||
core: core | ||
|
||
sections: | ||
'0': | ||
- overview | ||
- containers | ||
- images | ||
- storage | ||
- networking | ||
|
||
description: Everything you wanted to know about how to containerize and deploy with Docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: containers | ||
|
||
description: Docker's application packaging format | ||
|
||
insights: | ||
- virtualization | ||
- container-vs-vm | ||
- containers | ||
- container-philosophy |
24 changes: 1 addition & 23 deletions
24
docker/containers/container-philosophy.md → ...entals/containers/container-philosophy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
author: nem035 | ||
aspects: | ||
- workout | ||
- deep | ||
type: normal | ||
category: must-know | ||
links: | ||
- '[Containers vs VMs](Link: https://blog.netapp.com/blogs/containers-vs-vms/){article} | ||
- '[How is Docker different from a virtual machine?](https://stackoverflow.com/questions/16047306/how-is-docker-different-from-a-virtual-machine){discussion} | ||
--- | ||
|
||
# Container vs VM | ||
|
||
--- | ||
|
||
## Content | ||
|
||
We can think of a Docker container as a light-weight virtual machine. But unlike a VM which creates a whole virtual operating system each time it runs, Docker's containerization architecture allows it to share a lot of the host's operating system resources across containers. | ||
|
||
A virtual machine is more isolated from the host but much heavier because it requires more resources. Docker is less isolated but the containers require significantly less resources, allowing us to easily run thousands of them on a single host. This approach provides a non-trivial performance boost and reduces the size of the application. | ||
|
||
Containers only virtualize the operating system, not the underlying hardware. They contain the code, system tools and libraries, and the runtime needed for multiple applications. This is why containers are often preferable when multiple applications using the same operating system are needed. | ||
|
||
If virtual machines abstract away the hardware, containers abstract away the operating system. | ||
|
||
--- | ||
|
||
## Practice | ||
|
||
Docker container is more ??? than a VM which allows it to be started, stopped and replicated more ??? | ||
|
||
* light-weight | ||
* efficiently | ||
* isolated | ||
* safely | ||
|
||
--- | ||
|
||
## Revision | ||
|
||
A VM is an abstraction on top of ??? while a Docker container is an abstraction on top of ??? | ||
|
||
* hardware | ||
* operating system | ||
* cpu | ||
* software | ||
|
||
|
Oops, something went wrong.