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
  2. 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
  3. 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
  4. 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
  5. Real-Life Application © Tom Paulus @tompaulus https://tompaulus.com docker run \

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

    --name demo-wordpress \ --link demo-mysql:mysql \ -p 8080:80 \ -d \ wordpress
  7. 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