$30 off During Our Annual Pro Sale. View Details »

Introduction to Docker - ID-Python Meet Up October 2013

sfrnld
October 09, 2013

Introduction to Docker - ID-Python Meet Up October 2013

sfrnld

October 09, 2013
Tweet

Other Decks in Technology

Transcript

  1. Good Morning.

    View Slide

  2. docker
    Python Indonesia Meet Up
    October 2013
    Sefrinaldi | @sfrnldi
    Software Engineer at Infinyscloud

    View Slide

  3. I’m a .Net guy.

    View Slide

  4. Infinyscloud.com

    View Slide

  5. @sfrnldi

    View Slide

  6. View Slide

  7. Knowing each other...

    View Slide

  8. Docker is...

    View Slide

  9. A container
    management
    tool.

    View Slide

  10. Created by folks at dotCloud

    View Slide

  11. Based on dotCloud
    backend engine

    View Slide

  12. ..to make LXC easier to use.

    View Slide

  13. LXC
    Let you run a Linux system
    within another Linux system

    View Slide

  14. Linux Container
    “A group of processes on a Linux
    box, put together in an isolated env”.

    View Slide

  15. Re-write

    View Slide

  16. Reasons to use Docker

    View Slide

  17. You’re a hipster

    View Slide

  18. Re-installing Ubuntu
    from scratch is not fun.

    View Slide

  19. The only possible thing format to
    ship code with it's environment is
    using VM

    View Slide

  20. VM uses too many
    resource.

    View Slide

  21. Want to ship everything around
    the application, configuration,
    libs used, etc etc...

    View Slide

  22. Developer can guaranty that
    what he has create and run here
    can run smoothly over there.

    View Slide

  23. The chalenges.

    View Slide

  24. The chalenges

    View Slide

  25. The Matrix From Hell

    View Slide

  26. The solution.

    View Slide

  27. Create a standard
    shipment method.

    View Slide

  28. The solution

    View Slide

  29. “Build once...run anywhere”
    ~ Developer

    View Slide

  30. “Configure once...run anything”
    ~ DevOps

    View Slide

  31. Docker under the hood.

    View Slide

  32. File System

    View Slide

  33. Docker Layers
    Read-only

    View Slide

  34. Docker Image
    The
    read-
    only
    layer

    View Slide

  35. Docker Container

    View Slide

  36. Docker Container

    View Slide

  37. Docker Index / Registry

    View Slide

  38. Getting started.

    View Slide

  39. Dockerfile.

    View Slide

  40. Dockerfile.

    View Slide

  41. Build a Docker Image
    “docker build -t sfrnld/newimg .”

    View Slide

  42. Pull an Image
    “docker pull ubuntu:quantal”

    View Slide

  43. Get list of Docker images
    “docker image”

    View Slide

  44. Create a Container
    “docker run -i -t ubuntu:quantal /bin/bash”

    View Slide

  45. Get list of Docker container
    “docker ps -a”

    View Slide

  46. Commit a Container
    “docker commit 275fd72a5f62 sfrnld/newimages”

    View Slide

  47. Push an Image to Repository
    “docker push sfrnld/demo”

    View Slide

  48. Let’s try it out!

    View Slide

  49. Thanks for listening...

    View Slide