DOCKER FUNDAMENTALS
~ keep it simple, stupid ! ~
~ Mien Dinh ~
https://github.com/miendinh/docker-notes
1. Overview
● What is docker ?
- Like “VMware” but cooler and it runs in command line.
● Benefits of docker?
- Slight
- All-in-one
- Easy
2. Docker Architecture
● Client
● Host
- Daemon
- Container
- images
● Registry
● Simplifing:
- Client like “iphone”
- Registry like “App store”
- Images like “App”
- Container like when you run an “App”
2. Docker Architecture
● Volum
● Network
3. Playing with docker
● Installing docker ( Cenos )
https://github.com/miendinh/docker-notes/blob/master/centos-install.md
● Other OS
https://docs.docker.com/engine/installation/
● User search “an app” ( image )
○ docker search <image-name>[:<tag>]
Ex: docker search ubuntu
● Setup “app” ( to create container )
Ex: docker run -ti ubuntu:14.02
3. Playing with docker
● What containers are running ? ( Task manager )
○ docker ps -l ( -l = last )
○ docker ps -a ( -a = all )
● Killing a container ?
○ docker kill <container-id | container-name>
● Leave some processes in a container run in background
○ docker run -d -ti ubuntu bash
3. Playing with docker
● Share “dics”
○ Between container with host.
○ Between container with container
● Communicate
○ Container <-> host
○ Container <-> container

Docker Fundamentals

  • 1.
    DOCKER FUNDAMENTALS ~ keepit simple, stupid ! ~ ~ Mien Dinh ~ https://github.com/miendinh/docker-notes
  • 2.
    1. Overview ● Whatis docker ? - Like “VMware” but cooler and it runs in command line. ● Benefits of docker? - Slight - All-in-one - Easy
  • 3.
    2. Docker Architecture ●Client ● Host - Daemon - Container - images ● Registry ● Simplifing: - Client like “iphone” - Registry like “App store” - Images like “App” - Container like when you run an “App”
  • 4.
    2. Docker Architecture ●Volum ● Network
  • 5.
    3. Playing withdocker ● Installing docker ( Cenos ) https://github.com/miendinh/docker-notes/blob/master/centos-install.md ● Other OS https://docs.docker.com/engine/installation/ ● User search “an app” ( image ) ○ docker search <image-name>[:<tag>] Ex: docker search ubuntu ● Setup “app” ( to create container ) Ex: docker run -ti ubuntu:14.02
  • 6.
    3. Playing withdocker ● What containers are running ? ( Task manager ) ○ docker ps -l ( -l = last ) ○ docker ps -a ( -a = all ) ● Killing a container ? ○ docker kill <container-id | container-name> ● Leave some processes in a container run in background ○ docker run -d -ti ubuntu bash
  • 7.
    3. Playing withdocker ● Share “dics” ○ Between container with host. ○ Between container with container ● Communicate ○ Container <-> host ○ Container <-> container