Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction Docker

Introduction Docker

Introduction Talk Docker / Docker-compose

Martina Kraus

March 22, 2017
Tweet

More Decks by Martina Kraus

Other Decks in Technology

Transcript

  1. Introduction Docker
    Martina Kraus
    22.03.2017
    @wing121
    github.com/codekittey

    View Slide

  2. Agenda
    ● Docker Basics?
    ○ What is Docker?
    ○ Why should I docker?
    ○ Core concepts
    ○ Containers and images
    ● Dockerfile
    ● Docker-Compose
    Break
    ● Live Demo/ Hands On: Learning Docker together wit Bday #Labs
    2

    View Slide

  3. What is Docker?
    Image: http://www.docker.com 3

    View Slide

  4. Image: http://www.docker.com 4
    What is Docker?

    View Slide

  5. Docker is the world’s leading software container platform.
    Developers: use Docker to eliminate “works on my machine” problems when
    collaborating on code with co-workers.
    Operators: use Docker to run and manage apps side-by-side in isolated
    containers to get better compute density.
    Enterprises: use Docker to build agile software delivery pipelines to ship new
    features faster, more securely and with confidence for both
    Linux and Windows Server apps.
    What is Docker?

    View Slide

  6. Why should I Docker?
    Since (März 2013): (https://github.com/docker/docker)
    ● > 40, 000 stars
    ● > 2000 Contributors
    ● > 2000 dockerized applications and images:
    ○ Redis, Node.js, Hadoop, MySQL, PostgreSQL
    ● Integration with Jenkins, Travis, Chef, Puppet, Vagrant and OpenStack
    ● Docker-Meetups everywhere!!!!
    ○ DockerCon
    6

    View Slide

  7. Core concepts
    Image: http://www.docker.com 7

    View Slide

  8. Details
    ● Isolated process-memory,
    ● Every container has its own network,
    ● Container === isolated process,
    ● OS kernel sharing,
    ● Docker is written in Go,
    ● Native use for Mac OS, Windows and Linux
    8

    View Slide

  9. • Standardized packaging for
    software and dependencies
    • Isolate apps from each other
    • Share the same OS kernel
    • Works for all major Linux
    distributions
    • Containers native to Windows
    Server 2016
    What is a container?

    View Slide

  10. Docker-Images
    ● Fundament of Containers,
    ● Multiple containers can run using the same Docker-Image,
    ● Docker-Store contains some good basic images:
    ○ Nginx,
    ○ Node.JS,
    ○ MySQL,
    ● Containers are isolated from the Host and any other Containers:
    ○ You can decide what to share:
    ■ Ports,
    ■ Volumes (for persistent data (for database containers)),
    ■ networks,
    10

    View Slide

  11. Let’s write our first Dockerfile
    11

    View Slide

  12. Docker-Compose
    Define and run multi-container applications (services) with Docker
    ● Current Version: v1.11.2
    ● Offers cli-tools for container management:
    ○ Start
    ○ Stop
    ○ Rebuild
    12

    View Slide

  13. Let’s write our first docker-compose file
    13

    View Slide

  14. 14

    View Slide

  15. 15
    Martina Kraus
    @wing121

    View Slide

  16. Further Readings
    ● https://github.com/wsargent/docker-cheat-sheet
    ● https://docs.docker.com/
    ● https://docs.docker.com/compose/
    16

    View Slide