Docker — images et Dockerfile
Layers, instructions du Dockerfile, build, contexte, registry, multi-stage. Support : Docker101.
About this quiz
How many of the 21 questions in "Docker — images et Dockerfile" will you get right? This Technology quiz carries a difficulty of 4 out of 10. Enough to warm up the brain before the difficulty climbs.
Ready to dive in? A game only takes a few minutes: run through the questions, stack up XP and come back to beat your best score. For extra spice, take on your friends in a SparkleQuiz multiplayer room.
The “Technology” theme on SparkleQuiz
Who founded Apple in a garage? Read the full introduction to the Technology theme.
Worth knowing from this quiz
RUN tourne pendant le build (contrairement à docker run, qui tourne au lancement). EXPOSE ne publie rien, c'est de la documentation que -P sait lire.
Faux. EXPOSE n'est qu'une métadonnée. Il faut publier le port au lancement : -p 8080:80, ou -P qui publie automatiquement les ports déclarés par EXPOSE.
Les ENV définissent une valeur par défaut, que -e remplace au docker run. C'est comme ça qu'on passe une configuration différente par environnement avec la même image.
Sample questions
A handful of questions pulled from the quiz, so you can gauge its tone and level. Nothing is flagged here, you will have to start a game.
- Une collection de fichiers et de métadonnées rangés en layers
- Une machine virtuelle compressée
- Une copie du disque de l'hôte
- Un unique binaire exécutable
- Docker refuse au-delà de 5 conteneurs
- L'image est copiée 10 fois
- Les layers de l'image sont partagées en lecture seule ; chaque conteneur ajoute sa propre layer d'écriture
- Les 10 conteneurs écrivent dans la même layer
- NFS
- OverlayFS (overlay2)
- ext4 directement
- Un fichier ZIP par image
- CMD fournit les arguments par défaut passés à l'ENTRYPOINT
- CMD est obligatoire, ENTRYPOINT est déprécié
- Ce sont deux synonymes
- ENTRYPOINT tourne au build, CMD au lancement
- --verbose
- java -jar app.jar --verbose
- java -jar app.jar --help
- java -jar app.jar --help --verbose
Ready to play?
A game starts in seconds, no sign-up needed. Every correct answer earns XP and moves your progression forward.
Play nowSimilar quizzes
The Smartphone in Everyday Life
Apps, sensors and handy settings: what you do every day with your phone.
Computer Basics
Keyboard, mouse, desktop and recycle bin: the basics of using a computer.
Browsing the Internet
Browsers, bookmarks, downloads and Wi-Fi: the everyday basics of the Web.