intro 2 docker
TRANSCRIPT
![Page 1: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/1.jpg)
Introduction to
DockerBuild, run and scale
![Page 2: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/2.jpg)
About Me
● Vincent Sellier○ @vsellier
● Operations manager at eXo
![Page 3: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/3.jpg)
Agenda
Enjoy...
1. Docker fundamentals2. Tools and Ecosystem
And demos
![Page 4: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/4.jpg)
Dockerfundamentals
![Page 5: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/5.jpg)
What is a container ?
![Page 6: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/6.jpg)
What is Docker ?
● The docker engine is a wrapper for :○ Namespaces○ cgroups○ Union file systems
● Hide the underlying complexity
![Page 7: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/7.jpg)
Union filesystem
Layer 1Layer 2
Layer 3Layer 4
Layer 5Active layer
Read
Write
![Page 8: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/8.jpg)
3 important concepts
1. Immutability2. Rapidity3. Portability
![Page 9: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/9.jpg)
Docker trends
![Page 10: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/10.jpg)
Docker
Tools
![Page 11: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/11.jpg)
Installation
● Supported by all recent linux distros○ Package managers○ One line installer○ CoreOs : Fully docker oriented distros
● Supported on Mac and Windows
![Page 12: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/12.jpg)
docker-machine● Provision and configure docker hosts● almost 15 supported drivers
○ VirtualBox○ AWS○ GoogleCloud○ Microsoft Azure○ VMware vSphere○ OpenStack○ ...
![Page 13: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/13.jpg)
Docker Hub
● Online service maintained by Docker inc● Image repository with versioning● Content trust● Public / Private spaces● A private registry is available
![Page 14: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/14.jpg)
The Dockerfile
● Simple DSL to extend images○ Configure the base image○ Update the content○ Configure the startup behavior
● Each instruction results in one images layer
![Page 15: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/15.jpg)
Data volumes
● Special directories excluded from the Union File System● Persistents● Sharable between containers
![Page 16: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/16.jpg)
Networking and container links
● bind ports on docker hosts● link two containers or more
○ Configure the network○ Create an alias in the hosts file○ Inherit ENV instructions from the source container○ Support restart
![Page 17: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/17.jpg)
docker-compose
● Define multi-container applications in one file● Manage container dependencies● Can build images● Scale applications
![Page 18: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/18.jpg)
docker-swarm
● Docker clustering● Transparent for docker tools● Host selector● Support the new 1.9 docker network feature
![Page 19: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/19.jpg)
docker-swarm
dockerdocker-compose
swarm-master
discovery service
docker hostdocker host
docker hostdocker host
![Page 20: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/20.jpg)
Questions ?
![Page 21: Intro 2 docker](https://reader031.vdocument.in/reader031/viewer/2022021923/58ed12781a28ab204c8b4663/html5/thumbnails/21.jpg)
Thanks