What happens to data within a container when it is removed using 'docker rm'?
Data is deleted unless persisted using volumes.
Data is preserved in the image.
Data is migrated to a temporary location.
Data is automatically backed up.
What's the purpose of the -d flag when running a Docker container?
-d
Delete the container automatically after it exits.
Display detailed logs from the container.
Run the container in detached mode (background).
Disable networking for the container.
Where can you find pre-built Docker images for common software?
Docker Hub
GitHub repositories
Microsoft Azure Blob Storage
Amazon S3
Which Dockerfile instruction is used to define the base image for a new Docker image?
WORKDIR
RUN
FROM
COPY
What is the purpose of Dockerfile in Docker?
To define the steps for building a Docker image
To store container logs
To manage Docker networks
To run a Docker container
How do Docker containers differ from virtual machines?
Containers cannot run on the cloud.
Containers require more resources than VMs.
Containers share the host kernel, while VMs have their own.
Containers are used only for development, while VMs are for production.
What does the '-t' flag do when used with the 'docker build' command?
Sets a tag for the built image
Specifies the Dockerfile to use
Defines the target platform for the image
Enables verbose output during the build process
When should you consider using the 'host' network mode for a Docker container?
When you need to run a network monitoring tool inside the container
When you want to limit the container's network access for security reasons
When you need to expose multiple ports from the container
When you want to connect the container to a specific VLAN on the host
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
Which component of Docker's architecture is responsible for building and storing Docker images?
Docker Host
Docker Registry
Docker Container
Docker Client