What is a Docker image?
A running instance of a container
A command-line tool for managing Docker containers
A repository for storing Docker containers
A template for creating Docker containers
Which command will start a new container from an image?
docker exec
docker run
docker start
docker create
You want to see a list of all running containers. Which command do you use?
docker images
docker ps
What is the primary benefit of using a user-defined bridge network over the default bridge network in Docker?
Increased security by isolating containers on different networks
Improved performance by using a faster networking protocol
Simplified management by automatically connecting all containers to a single network
Reduced resource consumption by sharing network resources
Which command is used to download a Docker image from a registry?
docker push
docker pull
docker build
When should you consider using the 'host' network mode for a Docker container?
When you want to limit the container's network access for security reasons
When you want to connect the container to a specific VLAN on the host
When you need to run a network monitoring tool inside the container
When you need to expose multiple ports from the container
Which file format does Docker Compose use for defining application services?
compose.json
docker-compose.yml
config.yaml
Dockerfile
How do you specify a command to be executed when a Docker container starts using a Dockerfile?
ENTRYPOINT
CMD
RUN
ENV
What is a Docker image essentially composed of?
A compiled binary executable
A snapshot of your computer's current state
A collection of files and configuration needed to run an application
A virtual machine image
Where can you find pre-built Docker images for common software?
Docker Hub
GitHub repositories
Amazon S3
Microsoft Azure Blob Storage