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 Slide

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

    View 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 Slide

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

    View 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 Slide

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

    View Slide

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

    View 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 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 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 Slide

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

    View Slide

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

    View 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 Slide

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

    View Slide

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

    View Slide

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

    View Slide