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

Docker 101 Rubyist Edition

Docker 101 Rubyist Edition

David Anguita

January 29, 2016
Tweet

More Decks by David Anguita

Other Decks in Technology

Transcript

  1. Daemon • Manages containers • Exposes a REST-ish API Client

    $ docker ps $ docker images $ docker run ... Docker Engine Docker Machine
  2. Image vs Container $ docker images $ docker build $

    docker pull $ docker push $ docker commit $ docker rmi $ docker ps $ docker run $ docker start $ docker stop $ docker rm Immutable, snapshot of a container Running instance of an image Docker Registry
  3. Docker Compose $ docker-compose up $ docker-compose ps web $

    docker-compose logs web $ docker-compose scale web=5 ... • Multi-container set up • Wraps Docker CLI • Image building • Links • Volumes • Ports • Scaling
  4. api: image: ... command: ... environment: ... volumes: ... links:

    ... ports: ... frontend: ... sidekiq: ... postgres: ... elasticsearch: ... memcached: ... redis: ... haproxy: ... docker-compose.yml
  5. Real-world advantages • Easy Continuous Integration / Delivery • Consistency

    across environments • Portability • Isolated scalability • Rapid deployment • Instant (micro-)service oriented architecture • Clustering
  6. • Docker Swarm • Kubernetes Clustering Tooling Platforms • Amazon

    EC2 Container service • Google Container Engine
  7. Q&A