Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

of

Introduction to Docker - VIT Campus Slide 1 Introduction to Docker - VIT Campus Slide 2 Introduction to Docker - VIT Campus Slide 3 Introduction to Docker - VIT Campus Slide 4 Introduction to Docker - VIT Campus Slide 5 Introduction to Docker - VIT Campus Slide 6 Introduction to Docker - VIT Campus Slide 7 Introduction to Docker - VIT Campus Slide 8 Introduction to Docker - VIT Campus Slide 9 Introduction to Docker - VIT Campus Slide 10 Introduction to Docker - VIT Campus Slide 11 Introduction to Docker - VIT Campus Slide 12 Introduction to Docker - VIT Campus Slide 13 Introduction to Docker - VIT Campus Slide 14 Introduction to Docker - VIT Campus Slide 15 Introduction to Docker - VIT Campus Slide 16 Introduction to Docker - VIT Campus Slide 17 Introduction to Docker - VIT Campus Slide 18 Introduction to Docker - VIT Campus Slide 19 Introduction to Docker - VIT Campus Slide 20 Introduction to Docker - VIT Campus Slide 21 Introduction to Docker - VIT Campus Slide 22 Introduction to Docker - VIT Campus Slide 23 Introduction to Docker - VIT Campus Slide 24 Introduction to Docker - VIT Campus Slide 25 Introduction to Docker - VIT Campus Slide 26 Introduction to Docker - VIT Campus Slide 27 Introduction to Docker - VIT Campus Slide 28 Introduction to Docker - VIT Campus Slide 29 Introduction to Docker - VIT Campus Slide 30 Introduction to Docker - VIT Campus Slide 31 Introduction to Docker - VIT Campus Slide 32 Introduction to Docker - VIT Campus Slide 33 Introduction to Docker - VIT Campus Slide 34 Introduction to Docker - VIT Campus Slide 35 Introduction to Docker - VIT Campus Slide 36 Introduction to Docker - VIT Campus Slide 37 Introduction to Docker - VIT Campus Slide 38 Introduction to Docker - VIT Campus Slide 39 Introduction to Docker - VIT Campus Slide 40 Introduction to Docker - VIT Campus Slide 41 Introduction to Docker - VIT Campus Slide 42 Introduction to Docker - VIT Campus Slide 43 Introduction to Docker - VIT Campus Slide 44 Introduction to Docker - VIT Campus Slide 45 Introduction to Docker - VIT Campus Slide 46 Introduction to Docker - VIT Campus Slide 47 Introduction to Docker - VIT Campus Slide 48 Introduction to Docker - VIT Campus Slide 49 Introduction to Docker - VIT Campus Slide 50 Introduction to Docker - VIT Campus Slide 51 Introduction to Docker - VIT Campus Slide 52 Introduction to Docker - VIT Campus Slide 53 Introduction to Docker - VIT Campus Slide 54 Introduction to Docker - VIT Campus Slide 55 Introduction to Docker - VIT Campus Slide 56 Introduction to Docker - VIT Campus Slide 57 Introduction to Docker - VIT Campus Slide 58 Introduction to Docker - VIT Campus Slide 59 Introduction to Docker - VIT Campus Slide 60 Introduction to Docker - VIT Campus Slide 61 Introduction to Docker - VIT Campus Slide 62 Introduction to Docker - VIT Campus Slide 63 Introduction to Docker - VIT Campus Slide 64 Introduction to Docker - VIT Campus Slide 65 Introduction to Docker - VIT Campus Slide 66 Introduction to Docker - VIT Campus Slide 67 Introduction to Docker - VIT Campus Slide 68 Introduction to Docker - VIT Campus Slide 69 Introduction to Docker - VIT Campus Slide 70 Introduction to Docker - VIT Campus Slide 71 Introduction to Docker - VIT Campus Slide 72 Introduction to Docker - VIT Campus Slide 73 Introduction to Docker - VIT Campus Slide 74 Introduction to Docker - VIT Campus Slide 75 Introduction to Docker - VIT Campus Slide 76 Introduction to Docker - VIT Campus Slide 77 Introduction to Docker - VIT Campus Slide 78 Introduction to Docker - VIT Campus Slide 79 Introduction to Docker - VIT Campus Slide 80 Introduction to Docker - VIT Campus Slide 81 Introduction to Docker - VIT Campus Slide 82 Introduction to Docker - VIT Campus Slide 83 Introduction to Docker - VIT Campus Slide 84 Introduction to Docker - VIT Campus Slide 85 Introduction to Docker - VIT Campus Slide 86 Introduction to Docker - VIT Campus Slide 87 Introduction to Docker - VIT Campus Slide 88 Introduction to Docker - VIT Campus Slide 89 Introduction to Docker - VIT Campus Slide 90 Introduction to Docker - VIT Campus Slide 91
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

3 Likes

Share

Download to read offline

Introduction to Docker - VIT Campus

Download to read offline

I presented this 2 Hour session on March 18th 2019 for VIT Engineers and Staffs in Vellore

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Introduction to Docker - VIT Campus

  1. 1. Introduction to Docker
  2. 2. $whoami Principal Development Engineer at DellEMC 1st half of my career was in CGI & VMware 2nd half of my career has been in System Integration Testing Docker Captain (since 2016) Docker Bangalore Meetup Organizer ( 7600+ Registered Users) DockerLabs Incubator Ajeet Singh Raina Twitter: @ajeetsraina GitHub: ajeetraina
  3. 3. - My Personal Blog website - Built on WordPress, Hosted on One.com - Recently Completed 4th Year - 175+ blogs on Docker | Kubernetes | Cloud - Monthly close to 1 million visitors per month $curl www.collabnix.com
  4. 4. - A Shift from Monolithic to Microservices Architecture - Traditional Software Development Workflow(with/without Docker) - What is Docker? What problem does it solve for us? - Docker Vs Linux Containers - Docker Vs Virtual Machine - Running Your First Docker Container - Demo - Using Docker: Build, Ship and Run Workflow - Demo - Building Your Docker Image using Dockerfile - Demo Agenda
  5. 5. - Introduction to Docker Swarm - How Docker Swarm Mode works? - Running Web Application using Docker Swarm Mode - Demo - Test Drive Docker & Docker Swarm on Raspberry Pi – Let’s make it happen ! - How to contribute towards Docker Community? Agenda
  6. 6. A Shift from Monolithic to Microservice Architecture
  7. 7. Let’s imagine you are building a large, complex application, e.g., Online Store
  8. 8. Successful Software Development Architecture Process Organization
  9. 9. Successful Software Development Architecture Process Organization Small Autonomous team
  10. 10. Successful Software Development Architecture Process Agile Continuous Delivery Organization Small Autonomous team
  11. 11. Successful Software Development Architecture Monolthic Vs Microservices Process Agile Continuous Delivery Organization Small Autonomous team
  12. 12. A Close Look at Monolithic Browser Client App Storefront UI Module Catalog Module Reviews Module Orders Module HTML REST/JSON Database
  13. 13. A Close Look at Monolithic Browser Client App Storefront UI Module Catalog Module Reviews Module Orders Module WAR Tomcat HTML REST/JSON Database
  14. 14. Simple to Develop, Test, Deploy & Scale - Simple to develop because of all the tools and IDEs support to that kind of application by default. - Easy to deploy because all components are packed into one bundle. - Easy to scale the whole application. Benefits of Monolith
  15. 15. - Very difficult to maintain - One component failure will cause the whole system to fail. - Very difficult to understand and create the patches for monolithic applications. - Adapting to new technology is very challengeable. - Take a long time to startup because all the components need to get started. Disadvantages of Monolith
  16. 16. Today - Apps are constantly developed - Built from loosely coupled components - Newer version are deployed often - Deployed to a multitude of servers Customer/ Clients/ Users Data Storage Data Storage Data Storage
  17. 17. Microservice Architecture Catalog Service Reviews Service Order Service … Service Catalog Database Reviews Database Order Database … Database API Gateway Storefront UI Browser Mobile Device REST REST HTML REST
  18. 18. - Can scale independent microservices separately. No need to scale the whole the system - Can use the latest technologies to develop the microservices. - One component failure will not cause entire system downtimes. - When developing an overall solution we can parallel the microservices development task with the small teams. So it helps to decrease the development time. Benefits of Microservices
  19. 19. Once upon a time…a Software Stack
  20. 20. Now much more distributed & complex…
  21. 21. An Effort to solve the problem Complexity
  22. 22. Every possible good to ship X Every Possible way to Ship
  23. 23. Enter….Internodal Container
  24. 24. That’s what Docker is all about..
  25. 25. What is Docker and what problem does it solve?
  26. 26. What is Docker? Refers to several things in 2019  Docker as a “Company”  Docker as a “Product”  Docker as a “Platform”  Docker as a “CLI Tool”  Docker as a “Computer Program”
  27. 27. • Standardized packaging for software and dependencies • Isolate apps from each other • Share the same OS kernel • Works for all major Linux distributions • Containers native to Windows Server 2016 & 1809 What is Docker?
  28. 28. Docker Product Offerings
  29. 29. History of Docker  A Company as well as Product – 6 Years Old company Developed by DotCloud Inc. ( Currently Docker Inc.) A Framework they built their PaaS upon. Released it as open source 3 and 1/2 years back Cross-platform nature and friendliness towards System Admin and Developers Possible to set up in any OS, be it Windows, OSX, Linux, Solaris - It work the same way  Guaranteed to run the same way - Your development desktop, a bare-metal server, virtual machine, data center, or cloud
  30. 30. Today Docker runs on
  31. 31. Traditional Software Development WorkFlow (without Docker)
  32. 32. Traditional Software Development WorkFlow (with Docker)
  33. 33. Docker Vs VM
  34. 34. Docker Containers are NOT VMs
  35. 35. Virtual Machine
  36. 36. Containers
  37. 37. Docker Container Vs VM
  38. 38. Comparing Docker & VM Virtual Machines Docker Each VM runs its own OS Container is just a user space of OS Boot up time is in minutes Containers instantiate in seconds VMs snapshots are used sparingly Images are built incrementally on top of another like layers. Lots of images/snapshots Not effective diffs. Not version controlled Images can be diffed and can be version controlled. Docker hub is like GITHUB Cannot run more than couple of VMs on an average laptop Can run many Docker containers in a laptop. Only one VM can be started from one set of VMX and VMDK files Multiple Docker containers can be started from one Docker image
  39. 39. Docker Vocabulary
  40. 40. Image Layers Kernel Alpine Linux Install Python and Pip Upgrade Pip Copy Requirements Install Requirements …
  41. 41. Basic Docker CLIs Pulling Docker Image $ docker pull ajeetraina/hellowhale Listing out Docker Images $ docker image ls Running Docker Containers $ docker run –d –p 5000:5000 –-name hellowhale ajeetraina/hellowhale Stopping the container $ docker stop hellowhale (or <container id>)
  42. 42. Using Docker – Build, Ship & Run WorkFlow
  43. 43. Build. Ship. Run.
  44. 44. - Create DockerHub Account(if not completed) - Open https://play-with-docker.com - Hello Whale Example - Build Your First Docker Image & Push it to DockerHub Demo
  45. 45. Building Docker Containers & Microservices
  46. 46. Introducing Dockerfile Series of instructions to build Docker Images
  47. 47. Dockerfile – Example
  48. 48. Each Dockerfile creates a Layer Kernel Alpine Linux Install Python and Pip Upgrade Pip Copy Requirements Install Requirements …
  49. 49. Compose is a tool for defining and running multi-container Docker applications Docker Compose
  50. 50. - Running WordPress Application using Docker Compose Demo
  51. 51. Getting Started with Docker Swarm
  52. 52. Let’s start with Single Docker Host A Docker Host http://collabnix.com/getting-started-with-docker-swarm/
  53. 53. You start adding more hosts.. http://collabnix.com/getting-started-with-docker-swarm/
  54. 54. But Wait.. Service Discovery Scalability High Availability Failure Management Scheduling Rolling Updates Container Security
  55. 55. Docker Swarm comes for rescue.. http://collabnix.com/new-docker-1-12-comes-with-built-in-distribution-orchestration-system/
  56. 56. What is Swarm Mode? • A swarm consists of one or more nodes: physical or virtual machines running Docker Engine. • It was introduced first under Docker 1.12 release. • It enables the ability to deploy containers across multiple Docker hosts, using overlay networks for service discovery with a built-in load balancer for scaling the services. http://collabnix.com/docker-1-12-swarm-mode-under-the-hood/
  57. 57. Building Docker Swarm Topology
  58. 58. Building Swarm Cluster on Raspberry Pi Running Portainer on Raspberry Pi Demo
  59. 59. How shall I contribute for Docker Community?
  60. 60. Reference  https://github.com/collabnix/dockerlabs  https://docs.docker.com  http://www.collabnix.com
  61. 61. Thank You
  • pradeep2002gs

    Jun. 25, 2019
  • brindhasaran7

    Apr. 26, 2019
  • ContardoAcua

    Apr. 16, 2019

I presented this 2 Hour session on March 18th 2019 for VIT Engineers and Staffs in Vellore

Views

Total views

1,822

On Slideshare

0

From embeds

0

Number of embeds

6

Actions

Downloads

120

Shares

0

Comments

0

Likes

3

×