KEMBAR78
Introduction to docker | PPTX
Introduction to Docker
Build, Ship, and Run Any App,
Anywhere
~Prashant Kumar Tyagi
Agenda
• Introduction to Docker
• Docker Images
• Docker Container
• Demo time
• Q & A
@sunnyktyagi
• Development of DevOps solutions
- openstack, AWS, python, node.js, Jenkins, Docker
• Docker containerization of application
- docker file, docker run, benchmarking with Apache bench
• Runs Docker into Production
- Integrate docker with Jenkins
What is Docker for me ?
• A light weight Virtual Appliance
• Easy to build, run, destroy, move
• Don’t need big infrastructure ( ~ runs 100-
1000 in a typical server )
• A big ecosystem ( Docker hub, Orchestration
tools, cloud support etc. )
• Fastest growing open source technology
Details about Docker
• Started by dotcloud , a PaaS company
• Written in Go langauge
• March 2013: Docker 0.1 released
• Current version: Docker 1.7.0 ( June 22 , 2015)
• possible by linux cgroups and namespace.
• Based on LXC container
• On windows & Mac - Boot2Docker
… Docker Images ?
Docker File
( sample python based web app )
• FROM ubuntu
• MAINTAINER Prashant Tyagi
• RUN sudo apt-get update && sudo apt-get -y install
python && sudo apt-get -y install python-pip &&
sudo pip install flask
• COPY webapp /root/webapp
• EXPOSE 5000
• WORKDIR /root/webapp/
• CMD python app.py
…Containers ?
• inside my container:
- my code
- my libraries
- my package manager
- my app, my data
• outside my container:
- logging, remote access,
- network configurations
- monitoring
Demo Time!!!
I like to see How it works…..
References
• https://docs.docker.com
• https://wiki.jenkins-ci.org/display/JENKINS/Use+Jenkins
• https://en.wikipedia.org/wiki/Docker_%28software%29

Introduction to docker

  • 1.
    Introduction to Docker Build,Ship, and Run Any App, Anywhere ~Prashant Kumar Tyagi
  • 2.
    Agenda • Introduction toDocker • Docker Images • Docker Container • Demo time • Q & A
  • 3.
    @sunnyktyagi • Development ofDevOps solutions - openstack, AWS, python, node.js, Jenkins, Docker • Docker containerization of application - docker file, docker run, benchmarking with Apache bench • Runs Docker into Production - Integrate docker with Jenkins
  • 4.
    What is Dockerfor me ? • A light weight Virtual Appliance • Easy to build, run, destroy, move • Don’t need big infrastructure ( ~ runs 100- 1000 in a typical server ) • A big ecosystem ( Docker hub, Orchestration tools, cloud support etc. ) • Fastest growing open source technology
  • 5.
    Details about Docker •Started by dotcloud , a PaaS company • Written in Go langauge • March 2013: Docker 0.1 released • Current version: Docker 1.7.0 ( June 22 , 2015) • possible by linux cgroups and namespace. • Based on LXC container • On windows & Mac - Boot2Docker
  • 6.
  • 8.
    Docker File ( samplepython based web app ) • FROM ubuntu • MAINTAINER Prashant Tyagi • RUN sudo apt-get update && sudo apt-get -y install python && sudo apt-get -y install python-pip && sudo pip install flask • COPY webapp /root/webapp • EXPOSE 5000 • WORKDIR /root/webapp/ • CMD python app.py
  • 9.
    …Containers ? • insidemy container: - my code - my libraries - my package manager - my app, my data • outside my container: - logging, remote access, - network configurations - monitoring
  • 10.
    Demo Time!!! I liketo see How it works…..
  • 11.