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

Docker in a Flash

Docker in a Flash

Lightning Talk for Women Who Code about using Docker for environment management.

Alice Goldfuss

June 08, 2015
Tweet

More Decks by Alice Goldfuss

Other Decks in Programming

Transcript

  1. Docker
    in a Flash
    Alice Goldfuss
    @alicegoldfuss

    View Slide

  2. I’m
    Alice
    SRE @

    View Slide

  3. @alicegoldfuss
    WTF?
    Yay!
    Me

    View Slide

  4. @alicegoldfuss
    WTF?
    Yay!
    Me Coworker

    View Slide

  5. @alicegoldfuss
    Staging

    View Slide

  6. @alicegoldfuss
    Staging Production

    View Slide

  7. @alicegoldfuss
    Common factor?

    View Slide

  8. @alicegoldfuss
    The
    Environment
    @alicegoldfuss

    View Slide

  9. @alicegoldfuss

    View Slide

  10. @alicegoldfuss
    Docker Basics
    - Containerization software
    - Open source
    o github.com/docker/docker
    - Linux only

    View Slide

  11. @alicegoldfuss
    VMs
    host OS
    hypervisor
    guest OS guest OS
    bin / lib bin / lib
    app A app B

    View Slide

  12. @alicegoldfuss
    VMs Containers
    host OS host OS
    hypervisor Docker engine
    guest OS guest OS
    bin / lib bin / lib
    app A app B
    bin / lib bin / lib
    app A app B app B

    View Slide

  13. @alicegoldfuss
    Dockerfile

    View Slide

  14. @alicegoldfuss
    Dockerfile
    Image

    View Slide

  15. @alicegoldfuss
    Image
    Container
    Dockerfile

    View Slide

  16. @alicegoldfuss
    # Example my_app/Dockerfile
    # Pull base image.
    FROM dockerfile/ubuntu
    # Install Ruby.
    RUN apt-get install -y ruby
    # Install Sinatra.
    RUN gem install sinatra

    View Slide

  17. @alicegoldfuss
    # Example my_app/Dockerfile
    # Pull base image.
    FROM dockerfile/ubuntu <-- image layer
    # Install Ruby.
    RUN apt-get install -y ruby <-- image layer
    # Install Sinatra.
    RUN gem install sinatra <-- image layer

    View Slide

  18. @alicegoldfuss
    ubuntu
    ruby
    sinatra
    your image

    View Slide

  19. @alicegoldfuss
    your image
    container container container

    View Slide

  20. @alicegoldfuss
    Share it!
    Yay! Divine!
    your image

    View Slide

  21. @alicegoldfuss
    Ship it!
    your image your image

    View Slide

  22. @alicegoldfuss
    Ship it!
    your image
    your image
    your image
    your image
    your image
    your image

    View Slide

  23. @alicegoldfuss
    Docker at New Relic
    docker host 1 docker host 2
    docker host 3 docker host 4

    View Slide

  24. @alicegoldfuss
    Docker Tools
    - Centurion
    o github.com/newrelic/centurion
    - Dogestry
    o github.com/dogestry/dogestry

    View Slide

  25. Thanks!
    @alicegoldfuss

    View Slide