Skip to content

Commit

Permalink
Virtualization: Docker #time 5m
Browse files Browse the repository at this point in the history
  • Loading branch information
astromatt committed Oct 24, 2018
1 parent 0a8090a commit e6fdfaf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions book/virtualization/docker.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Docker
======

What is docker?
---------------
.. figure:: ../../img/docker-vs-lxc.png
:scale: 50%
:align: center

Docker vs LXC


Installing
----------
- `macOS <https://docs.docker.com/docker-for-mac/install/>`_
Expand All @@ -17,6 +26,7 @@ Install docker from terminal
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
Nomenclature
------------
* Container (How to run your application)
Expand Down Expand Up @@ -44,13 +54,13 @@ Nomenclature

Container Layers


.. figure:: ../../img/docker-container-layers.png
:scale: 50%
:align: center

Container Layers


CLI - Command Line Interface
----------------------------

Expand Down Expand Up @@ -231,6 +241,7 @@ Remove container
docker rm IMAGE
Images
------

Expand Down Expand Up @@ -351,7 +362,6 @@ Docker network

Docker network


Expose ports
^^^^^^^^^^^^
.. code-block:: console
Expand Down Expand Up @@ -468,14 +478,12 @@ FROM
FROM python:latest
``RUN``
^^^^^^^
.. code-block:: dockerfile
RUN ["/bin/bash", "-c", "echo hello"]
``CMD`` vs ``RUN``
^^^^^^^^^^^^^^^^^^
* There can only be one ``CMD`` instruction in a Dockerfile
Expand Down Expand Up @@ -729,11 +737,13 @@ Limiting resources
------------------
* https://docs.docker.com/config/containers/resource_constraints/#--memory-swap-details


Where docker store containers
-----------------------------
* ``docker info``
* ``/var/lib/docker/containers``


Kubernetes
----------
* Kubernetes is a framework for building distributed platforms
Expand All @@ -757,6 +767,15 @@ Scaling
Monitoring
^^^^^^^^^^


Swarm
-----


Mesos
-----


Assignments
-----------

Expand Down
Binary file added img/docker-vs-lxc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e6fdfaf

Please sign in to comment.