Docker Chapter 21-20: Les conteneurs Docker et la virtualisation
50 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Quel est le but de la virtualisation selon le texte?

  • Réduire le coût du matériel en augmentant les pannes
  • Diminuer la gestion et la rapidité de provisionnement
  • Améliorer la fiabilité en réduisant la polyvalence
  • Exécuter simultanément plusieurs OS/applications sur une même machine (correct)

Qu'est-ce que la paravirtualisation selon le texte?

  • Un processus complexe nécessitant une virtualisation multicouche
  • Une technique qui n'a pas besoin d'adapter le système d'exploitation invité
  • Un type de virtualisation qui demande plusieurs couches intermédiaires
  • Un hyperviseur de type 1 qui s'exécute sur le matériel hôte directement (correct)

Quel est l'inconvénient mentionné de la virtualisation dans le texte?

  • Simplifie la gestion et améliore les performances
  • Augmente la fiabilité et diminue la polyvalence
  • Réduit la complexité et la couche d'abstraction
  • Augmente la complexité et nuit aux performances en consommant des ressources (correct)

Quel est le rôle de l'hyperviseur dans la virtualisation?

<p>Créer et exécuter des machines virtuelles en allouant les ressources matérielles de l'ordinateur hôte (A)</p> Signup and view all the answers

Pourquoi exécuter plusieurs OS/applications simultanément sur une même machine selon le texte?

<p>Faciliter l'administration et accélérer la mise en service (C)</p> Signup and view all the answers

Quel est l'avantage mentionné de la paravirtualisation dans le texte?

<p>Nécessite une adaptation des systèmes d'exploitation invités (D)</p> Signup and view all the answers

Quelle est la principale différence entre l'émulation et la virtualisation complète?

<p>Dans l'émulation, on simule uniquement l'unité centrale, alors que dans la virtualisation complète, on simule toute l'architecture matérielle. (A)</p> Signup and view all the answers

Qu'est-ce qui caractérise un conteneur selon B.Groz?

<p>Un conteneur est un silo léger et isolé qui permet d'exécuter une application sur l'OS hôte. (B)</p> Signup and view all the answers

Quelle affirmation concernant l'isolation des conteneurs est vraie?

<p>L'isolation signifie que les conteneurs ne peuvent pas accéder aux autres sans autorisation explicite. (A)</p> Signup and view all the answers

Pourquoi les performances des environnements virtuels sont souvent médiocres?

<p>Parce que les environnements virtuels partagent les ressources systèmes sur l'hôte. (B)</p> Signup and view all the answers

Quel type de virtualisation est associé aux conteneurs Docker selon B.Groz?

<p>Virtualisation légère (C)</p> Signup and view all the answers

Quelle est la principale différence entre la virtualisation complète (type 2) et la paravirtualisation (type 1)?

<p>La virtualisation complète s'exécute directement sur le matériel de l'hôte, tandis que la paravirtualisation s'exécute sur l'OS hôte. (D)</p> Signup and view all the answers

Quel avantage la paravirtualisation offre-t-elle par rapport à la virtualisation complète en termes de performances?

<p>La paravirtualisation nécessite des OS invités adaptés pour obtenir des performances proches du matériel réel. (C)</p> Signup and view all the answers

Qu'est-ce qui différencie l'environnement de containerization de la virtualisation complète et de la paravirtualisation en termes de partage de ressources?

<p>Les containers partagent le noyau et les pilotes hôtes, tandis que la virtualisation complète et la paravirtualisation n'ont pas ce partage. (B)</p> Signup and view all the answers

Pourquoi la virtualisation complète (type 2) est-elle considérée comme la solution la plus courante pour les particuliers?

<p>Elle simule complètement l'ordinateur tout en donnant accès aux ressources matérielles de l'hôte. (D)</p> Signup and view all the answers

Quelle conséquence découle du fait que la paravirtualisation (type 1) exige des OS invités adaptés?

<p>L'incompatibilité avec certains OS invités populaires. (A)</p> Signup and view all the answers

Quel est l'avantage majeur des containers par rapport aux autres techniques de virtualisation?

<p>Les containers partagent efficacement les ressources avec le système hôte. (C)</p> Signup and view all the answers

What is the primary purpose of OS.Virtualization?

<p>To improve scalability and resiliency (D)</p> Signup and view all the answers

In the context of virtualization, what does the term 'hypervisor' refer to?

<p>A system that creates and executes virtual machines by allocating hardware resources (A)</p> Signup and view all the answers

How does paravirtualization differ from full virtualization in terms of performance?

<p>Paravirtualization offers better performance due to specialized OS adaptations (D)</p> Signup and view all the answers

What is a disadvantage mentioned in the text regarding virtualization?

<p>Augments complexity and consumes resources (A)</p> Signup and view all the answers

Which type of paravirtualization closely mimics real hardware performance?

<p>Type 1 paravirtualization (A)</p> Signup and view all the answers

What is a key advantage of using containers like Docker over traditional virtual machines?

<p>Enhanced security through isolation of guests (A)</p> Signup and view all the answers

What command is used to run a program inside an image in Docker?

<p>docker exec -it mon-linux-shell sh (B)</p> Signup and view all the answers

Which command is used to remove containers that are not in use in Docker?

<p>docker ps -aq | xargs -r docker rm -f (C)</p> Signup and view all the answers

According to the provided content, what is the purpose of the script provided for cleaning up in Docker?

<p>To remove unused Docker volumes (D)</p> Signup and view all the answers

In the context of Docker, what does the command 'docker rm -f' do?

<p>Removes a Docker container (C)</p> Signup and view all the answers

What action does 'docker volume ls -qf dangling=true' perform in Docker?

<p>Lists only unused volumes (D)</p> Signup and view all the answers

What is the purpose of the 'docker pull' instruction in Docker?

<p>To download a Docker image (D)</p> Signup and view all the answers

Which option is used in Docker to create a container that runs in the background?

<p>-d (A)</p> Signup and view all the answers

What does the 'docker exec -it' command do in Docker?

<p>Executes an application within a running container (A)</p> Signup and view all the answers

What is the purpose of the 'docker cp' instruction in Docker?

<p>Copies a file into a container (C)</p> Signup and view all the answers

In Docker, what does the 'docker ps -a' command do?

<p>Lists containers (running or not) (A)</p> Signup and view all the answers

When is the 'docker restart' command used in Docker?

<p>To restart a stopped container (D)</p> Signup and view all the answers

What is the purpose of paravirtualization in comparison to full virtualization?

<p>To improve performance by running directly on host hardware (B)</p> Signup and view all the answers

How does virtualization contribute to improved software testing according to the text?

<p>By reducing the need for multiple physical machines (D)</p> Signup and view all the answers

What is a significant drawback mentioned in the text related to virtualization?

<p>Complexity and performance impact from abstraction layers (B)</p> Signup and view all the answers

In the context of virtualization, what role does the hypervisor play as described in the text?

<p>Allocating memory and CPU resources to guest machines (A)</p> Signup and view all the answers

Why is full virtualization (type 2) considered the most common solution for individuals according to the text?

<p>To minimize complexity and abstraction layers (A)</p> Signup and view all the answers

What action does the 'docker cp' command perform in Docker?

<p>Copies a file into a container (D)</p> Signup and view all the answers

What is the purpose of the '--rm' option in the 'docker run' command in Docker?

<p>Remove automatically container when exited (B)</p> Signup and view all the answers

In Docker, what does the '-v' option do in the 'docker run' command?

<p>Mount a volume into a directory inside the container (C)</p> Signup and view all the answers

What is the function of the 'docker restart' command in Docker?

<p>Restarts a previously stopped container (B)</p> Signup and view all the answers

Which command is used in Docker to execute an application within a running container?

<p>'docker exec -it' (B)</p> Signup and view all the answers

What behavior does the '-d' option exhibit in the 'docker run' command in Docker?

<p>'Run in detached mode (background)' (B)</p> Signup and view all the answers

What is the purpose of the script provided for cleaning up in Docker?

<p>To remove unused containers, images, and volumes (C)</p> Signup and view all the answers

Why does paravirtualization (type 1) typically require guest OS adaptations?

<p>To enhance compatibility with the underlying virtualization technology (A)</p> Signup and view all the answers

What is a key difference between process, container, and VM in the context of Docker?

<p>Containers are more lightweight than VMs (A)</p> Signup and view all the answers

What distinguishes an environment of containerization from full virtualization and paravirtualization in terms of resource sharing?

<p>Containers allow for direct access to physical hardware resources (C)</p> Signup and view all the answers

Why are performance levels often subpar in virtual environments according to the text?

<p>Virtual environments face issues related to context switching and overhead (B)</p> Signup and view all the answers

More Like This

Docker en Virtualisatie Quiz - Les 10
32 questions
Docker operacinės sistemos
5 questions

Docker operacinės sistemos

MagnanimousCloisonnism avatar
MagnanimousCloisonnism
Docker: Imágenes y Contenedores
24 questions

Docker: Imágenes y Contenedores

EffortlessAntigorite5305 avatar
EffortlessAntigorite5305
Docker: Contenedores, Imágenes y Comandos
48 questions
Use Quizgecko on...
Browser
Browser