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

Introduction to Docker

Introduction to Docker

Docker: An open source project to pack, ship and run any application as a lightweight container.

The slide introduces what problem the Docker solves in higher level view. Not the step by step tutorial.

Browny Lin

May 30, 2014
Tweet

More Decks by Browny Lin

Other Decks in Programming

Transcript

  1. Not works on my machine Works on my machine Works

    yesterday Did you change something?
  2. The Docker Is A reproducible, separation of concern and well

    performed Abstraction for Developers & Operators
  3. CarForTruck compileForTruck(Car car) CarForShip compileForShip(Car car) … PianoForTruck compileForTruck(Piano piano)

    ... transportCarByTruck(CarForTruck car) transportCarByShip(CarForShip car) … transportPianoByTruck(Piano piano) ...
  4. Interface Docker { void dependency(); // for Developer void runtime();

    // for Operator } The Docker Is nice interface
  5. How does Docker work 1. Dockerfile (Infrastructure as Code) 1-1.

    Describe the composition of environment 1-2. Describe the service it provides 2. Docker daemon (receive the Docker cli, client- server arch.) 3. Docker command line
  6. Conclusion 1. Docker is not only for deployment, it is

    also a working- style 2. Run successfully once here, run successfully anytime/anywhere 3. Infrastructure as code, and it could be version controlled 4. Easier to scale out
  7. References 1. Learn Docker: https://www.docker.io/learn_more/ 2. browny/docker: https://github.com/browny/docker 3. Cheatsheet:

    https://gist.github.com/wsargent/7049221 Advanced Topic - Where are Docker images stored? - Lounge Scene : http://blog.thoward37.me/articles/where-are- docker-images-stored/ - Docker Networking Made Simple or 3 Ways to Connect LXC Containers: https://blog.codecentric. de/en/2014/01/docker-networking-made-simple-3-ways-connect-lxc-containers/