What does the Docker Engine comprise of?
Docker Daemon and Docker Registry
Docker Client and Docker Server
Docker Client, Docker Daemon, Docker Images
Docker Client, Docker Daemon, and Docker Registry
What does the COPY instruction do in a Dockerfile?
COPY
Copies files or directories from the host machine to the image.
Exposes a port from the container to the host.
Executes a command within the Docker image.
Sets the working directory for subsequent instructions.
Which command lists all Docker images present on your system?
docker image ls
docker images
docker list images
docker show images
What is the purpose of Dockerfile in Docker?
To run a Docker container
To manage Docker networks
To store container logs
To define the steps for building a Docker image
You've pulled an image named 'my-app-image'. How would you start a container from this image and give it the name 'my-app-container'?
docker run my-app-image my-app-container
docker run -it my-app-image -n my-app-container
docker run -d my-app-container my-app-image
docker run --name my-app-container my-app-image
You want to see a list of all running containers. Which command do you use?
docker ps
docker run
docker exec
Which Docker Compose command is used to start services in the background?
docker-compose up
docker-compose start
docker-compose up -d
docker-compose run
What is the core functionality of Docker?
Compiling code into executable programs
Managing virtual machines
Building and running applications in isolated environments
Automating software deployments
After stopping a container, you want to remove it completely. What command should you use?
docker delete
docker erase
docker remove
docker rm
Which component of Docker's architecture is responsible for building and storing Docker images?
Docker Container
Docker Registry
Docker Host
Docker Client