Which Dockerfile instruction is used to define the base image for a new Docker image?
RUN
COPY
FROM
WORKDIR
Which command will start a new container from an image?
docker exec
docker create
docker run
docker start
What happens to data within a container when it is removed using 'docker rm'?
Data is migrated to a temporary location.
Data is deleted unless persisted using volumes.
Data is preserved in the image.
Data is automatically backed up.
What is a Docker image?
A running instance of a container
A repository for storing Docker containers
A command-line tool for managing Docker containers
A template for creating Docker containers
Where can you find pre-built Docker images for common software?
Amazon S3
GitHub repositories
Microsoft Azure Blob Storage
Docker Hub
What command will successfully remove a Docker image named 'my-app-image'?
docker image rm my-app-image
docker rm my-app-image
docker rmi my-app-image
docker delete my-app-image
To gracefully stop a running container, which command is recommended?
docker halt
docker stop
docker down
docker kill
What is a Docker image essentially composed of?
A compiled binary executable
A virtual machine image
A collection of files and configuration needed to run an application
A snapshot of your computer's current state
What's the purpose of the -d flag when running a Docker container?
-d
Run the container in detached mode (background).
Delete the container automatically after it exits.
Display detailed logs from the container.
Disable networking for the container.
Which instruction in a Dockerfile sets the working directory inside the image during the build process?
ENV