Skip to content

Commit

Permalink
🐳✨ add more docker content yay
Browse files Browse the repository at this point in the history
  • Loading branch information
nem035 committed Aug 23, 2019
1 parent adc7ffd commit 0c90ec8
Show file tree
Hide file tree
Showing 33 changed files with 981 additions and 950 deletions.
74 changes: 0 additions & 74 deletions docker/README.md

This file was deleted.

103 changes: 0 additions & 103 deletions docker/containers/containers.md

This file was deleted.

64 changes: 0 additions & 64 deletions docker/docker/what-is-docker.md

This file was deleted.

13 changes: 13 additions & 0 deletions docker/fundamentals/README.md
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
9 changes: 9 additions & 0 deletions docker/fundamentals/containers/README.md
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
Original file line number Diff line number Diff line change
@@ -1,33 +1,11 @@
---
author: nem035

levels:

- beginner

- basic


tags:

aspects:
- introduction
- workout
- deep


type: normal

category: must-know

standards:
devops.identify-docker.1: 10

links:

- '[link to official documentation](https://enki.com)'
- '[link to deeper dive blog post](https://enki.com)'
- '[link to a video](https://enki.com)'
- '[link to a discussion](https://enki.com)'
---

# Container Philosophy
Expand Down
49 changes: 49 additions & 0 deletions docker/fundamentals/containers/container-vs-vm.md
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


Loading

0 comments on commit 0c90ec8

Please sign in to comment.