Docker General informations Flashcards
What is Docker?
Docker is an open-source platform that automates the deployment, scaling, and management of applications using containerization.
True or False: Docker containers share the host OS kernel.
True
What is the primary benefit of using Docker?
The primary benefit of using Docker is the ability to package applications and their dependencies into containers, ensuring consistent environments across development, testing, and production.
Fill in the blank: Docker uses ______ to manage containers.
images
What command is used to create a new Docker container?
docker run
What is the difference between a container and a virtual machine?
Containers share the host OS and are lightweight, while virtual machines include a full OS and are more resource-intensive.
True or False: Docker can run on any operating system.
False
What is a Dockerfile?
A Dockerfile is a script containing a series of instructions on how to build a Docker image.
Which command lists all running Docker containers?
docker ps
What is the purpose of Docker Compose?
Docker Compose is used to define and run multi-container Docker applications.
Fill in the blank: Docker containers are ______ than virtual machines.
more efficient
What is the default storage driver used by Docker?
overlay2
True or False: Docker can be used for both development and production environments.
True
What is the command to stop a running Docker container?
docker stop
What file format is used to define a Docker image?
tar
What is a Docker registry?
A Docker registry is a repository for storing and distributing Docker images.
Which command is used to pull an image from Docker Hub?
docker pull
Fill in the blank: In Docker, ______ is the process of creating an image from a container.
committing
What is the main advantage of containerization over traditional virtualization?
Containerization allows for faster start-up times and less overhead compared to traditional virtualization.
True or False: Docker is designed to run applications in isolation from one another.
True
What command is used to remove a Docker container?
docker rm
What are the two main components of Docker architecture?
Docker Engine and Docker Hub
Fill in the blank: Docker containers are ______ than virtual machines.
lighter
What command is used to build a Docker image from a Dockerfile?
docker build