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

Ops Made Easy: An introduction to using Docker

Tom Paulus
February 07, 2018

Ops Made Easy: An introduction to using Docker

Tom Paulus

February 07, 2018
Tweet

More Decks by Tom Paulus

Other Decks in Technology

Transcript

  1. Ops Made Easy
    An introduction to using Docker
    Tom Paulus
    @tompaulus
    https://github.com/tpaulus
    https://tompaulus.com

    View full-size slide

  2. © Tom Paulus @tompaulus https://tompaulus.com
    What is Ops?

    View full-size slide

  3. Traditional Method
    • Multiple VMs run on unit of hardware
    • Each VM is completely independent and
    runs its own Guest OS
    • Hypervisor monitors and supports VMs
    running on the infrastructure
    © Tom Paulus @tompaulus https://tompaulus.com
    App A
    Bins/Libs
    Guest OS
    App B
    Bins/Libs
    Guest OS
    App C
    Bins/Libs
    Guest OS
    Hypervisor
    Infrastructure
    VM

    View full-size slide

  4. © Tom Paulus @tompaulus https://tompaulus.com
    What is Docker?

    View full-size slide

  5. Containerized Method
    • Containers can share the Host OS with
    other containers, making them much
    smaller and simpler
    • Because of this they start almost instantly
    and managing containers is much easier
    as we will see
    © Tom Paulus @tompaulus https://tompaulus.com
    App A
    Bins/Libs
    App B
    Bins/Libs
    App C
    Bins/Libs
    Host OS
    Infrastructure
    CONTAINER
    Docker

    View full-size slide

  6. © Tom Paulus @tompaulus https://tompaulus.com
    Docker in Practice

    View full-size slide

  7. Testing your Docker Install
    © Tom Paulus @tompaulus https://tompaulus.com

    View full-size slide

  8. Real-Life Application
    © Tom Paulus @tompaulus https://tompaulus.com
    • Wordpress presents us with a perfect
    application
    • Composed of a Web Server
    (commonly nginx) and a DB
    (commonly MySQL)
    Wordpress
    MySQL

    View full-size slide

  9. Real-Life Application
    © Tom Paulus @tompaulus https://tompaulus.com
    docker run \
    --name demo-mysql \
    -e MYSQL_ROOT_PASSWORD=my-secret-pw \
    -d \
    mysql

    View full-size slide

  10. Real-Life Application
    © Tom Paulus @tompaulus https://tompaulus.com
    docker run \
    --name demo-wordpress \
    --link demo-mysql:mysql \
    -p 8080:80 \
    -d \
    wordpress

    View full-size slide

  11. Real-Life Application
    © Tom Paulus @tompaulus https://tompaulus.com
    http://localhost:8080

    View full-size slide

  12. © Tom Paulus @tompaulus https://tompaulus.com
    Demo

    View full-size slide

  13. Want to Learn More?
    • Docker’s Website and the Community Hub
    • https://www.docker.com
    • https://store.docker.com
    • Google & the Community
    • There are tons of resources online, just a quick Google Search Away!
    © Tom Paulus @tompaulus https://tompaulus.com

    View full-size slide

  14. © Tom Paulus @tompaulus https://tompaulus.com

    View full-size slide

  15. © Tom Paulus @tompaulus https://tompaulus.com
    https://tpaul.us/docker-talk
    Slides Available Online:

    View full-size slide

  16. © Tom Paulus @tompaulus https://tompaulus.com

    View full-size slide