What happens to data within a container when it is removed using 'docker rm'?
Data is preserved in the image.
Data is migrated to a temporary location.
Data is automatically backed up.
Data is deleted unless persisted using volumes.
What is the default network type used by Docker when creating a new container?
Host
Overlay
None
Bridge
How do you specify a command to be executed when a Docker container starts using a Dockerfile?
RUN
ENV
ENTRYPOINT
CMD
How would you build or rebuild services without starting them in Docker Compose?
docker-compose start --build
docker-compose create --build
docker-compose build
docker-compose up --build
What command initiates the building of a Docker image from a Dockerfile?
docker compile
docker make
docker build
docker create
How do Docker containers differ from virtual machines?
Containers are used only for development, while VMs are for production.
Containers share the host kernel, while VMs have their own.
Containers cannot run on the cloud.
Containers require more resources than VMs.
What is the primary function of the Docker Daemon (dockerd)?
Managing Docker images and containers
Providing a user interface for Docker
Building Docker images
Pushing images to a registry
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 Client
Docker Registry
Docker Host
Docker Container
What is the key difference between Docker and a virtual machine?
Docker provides a graphical user interface, while VMs do not
Docker is primarily used for development, while VMs are used for production
Docker containers share the host OS kernel, while VMs have their own kernel
Docker is used for hardware virtualization, while VMs are used for software virtualization