Docker Flashcards
What is Docker primarily used for?
Docker is used for developing, shipping, and running applications in containers.
Fill in the blank: Docker packages applications into _____.
containers
True or False: Docker containers require a virtual machine to run.
False
What command is used to start a Docker container from an image?
docker run [image_name]
How does Docker improve application scalability?
Docker enables containers to be easily replicated and scaled across multiple hosts.
Which file format is used to define the steps to build a Docker image?
Dockerfile
What is the purpose of the ‘docker-compose.yml’ file?
It defines and manages multi-container Docker applications.
What command lists all Docker containers, including stopped ones?
docker ps -a
Fill in the blank: Docker images are built from instructions written in a _____.
Dockerfile
True or False: Docker images contain the entire operating system needed to run an application.
False
What command is used to stop a running Docker container?
docker stop [container_id]
How does Docker differ from traditional virtual machines?
Docker containers share the host OS kernel, making them lighter and faster than virtual machines.
What command removes a Docker container?
docker rm [container_id]
Fill in the blank: A Docker _____ is an executable package that includes everything needed to run an application.
container
True or False: Each Docker container runs its own isolated OS kernel.
False
What command is used to download an image from Docker Hub?
docker pull [image_name]
What is Docker Hub?
Docker Hub is a public repository for Docker images.
How does Docker Compose simplify multi-container applications?
Docker Compose allows users to define and manage multiple containers with a single YAML file.
Which Docker command shows the running processes inside a container?
docker top [container_id]
True or False: Docker containers can only be run on Linux systems.
False