présentation docker

28
Docker Colin LEVERGER – [email protected] 11/06/2022

Upload: colin-leverger

Post on 07-Aug-2015

171 views

Category:

Engineering


2 download

TRANSCRIPT

Page 1: Présentation Docker

15/04/2023

Docker

Colin LEVERGER – [email protected]

Page 2: Présentation Docker

Colin LEVERGER 2

Sommaire

• La virtualisation• Présentation docker• Avantages• Inconvénients• Cas d’usages & exemples• Conclusion

Page 3: Présentation Docker

Colin LEVERGER 3

La virtualisation

• Contexte d’économie…• Création système virtuel dans

système physique• Séparation complète entre VM &

système• Sécurité• … Mais lourdeur

Page 4: Présentation Docker

Colin LEVERGER 4

Présentation docker

• Nouvelle manière de virtualiser• Concept différent :• On virtualise des « services » plus

que des « OS »

• OpenSource• Contexte cloud

• Devise : « Build, Ship, Run ! »

Page 5: Présentation Docker

Colin LEVERGER 5

Présentation docker

• Différence avec virtualisation « classique » :• Reposer sur l’OS existant• Conteneuriser

Gain de performances

Page 6: Présentation Docker

Colin LEVERGER 6

Docker en chiffres…

• Création : mars 2013• Git :• 1,000 contributeurs• 16,000 commits & push• 22,300 stars• 6,000 forks

• 13,000+ apps available on Docker Hub

Page 7: Présentation Docker

Colin LEVERGER 7

Avantages

• Possibilité de virtualiser plus de services• Développement rapide &

constant de Docker• MAJ des services indépendante

des MAJ de l’OS !• Beaucoup de services supportés

Page 8: Présentation Docker

Colin LEVERGER 8

Inconvénients

• Produit jeune• Stabilité• Sécurité ?

Page 9: Présentation Docker

Colin LEVERGER 9

Docker & ligne de commande

Page 10: Présentation Docker

Colin LEVERGER 10

Commandes classiques : search

Page 11: Présentation Docker

Colin LEVERGER 11

Commandes classiques : Pull

Page 12: Présentation Docker

Colin LEVERGER 12

Commandes classiques : run interactif

-t, --tty=false Allocate a pseudo-TTY-i, --interactive=false Keep STDIN open even if not attached

Page 13: Présentation Docker

Colin LEVERGER 13

Commandes classiques : run détaché

-p, --publish=[] Publish a container's port(s) to the host-d, --detach=false Run container in background and print container ID

Page 14: Présentation Docker

Colin LEVERGER 14

Commandes classiques : run détaché

Page 15: Présentation Docker

Colin LEVERGER 15

Commandes classiques : ps -a

Page 16: Présentation Docker

Colin LEVERGER 16

Le fichier « Dockerfile »

Page 17: Présentation Docker

Colin LEVERGER 17

Le fichier « Dockerfile »

Page 18: Présentation Docker

Colin LEVERGER 18

Le fichier « Dockerfile »

• Permet de :• Construire son app en fonction de

ses besoins• Déployer et distribuer son app

facilement• Versionner le développement

Page 19: Présentation Docker

Colin LEVERGER 19

Docker & interface graphique

Page 20: Présentation Docker

Colin LEVERGER 20

Docker & interface graphique

Page 21: Présentation Docker

Colin LEVERGER 21

Exemple d’utilisation

• Intégration continue• DevOps• Test rapide d’application• Déploiement automatisé

Simplifie la tâche du développeur !

Page 22: Présentation Docker

Colin LEVERGER 22

Exemple d’utilisation : déploiement app webEtapes :1. Développement application2. Upload appli sur le serveur3. Création & paramétrage container4. Run…

5. Maintenance ?

Page 23: Présentation Docker

Colin LEVERGER 23

Exemple d’utilisation : déploiement app web

Page 24: Présentation Docker

Colin LEVERGER 24

Page 25: Présentation Docker

Colin LEVERGER 25

Exemple d’utilisation : déploiement app web

Page 26: Présentation Docker

Colin LEVERGER 26

Exemple d’utilisation : création serveur VPNEtapes :1. Spécification besoins2. Recherche d’image3. Paramétrer l’image choisie4. Run

5. Maintenance ?

Page 27: Présentation Docker

Colin LEVERGER 27

Dans le monde de l’entreprise…

• Google• Spotify• …

Nouvelle norme « Continuous delivery » Grande scalabilité

Page 28: Présentation Docker

Colin LEVERGER 28

Conclusion

• Développement exponentiel• Possibilités accrues vis-à-vis de

l’ancien mode de virtualisation• Concurrence ?• Avenir ?