What is the role of authentication tokens in the context of a Docker Registry?
They are used to digitally sign images to ensure their integrity.
They define the network routes for communication between the registry and clients.
They provide temporary access credentials for interacting with the registry.
They are used to encrypt images stored in the registry.
When scaling a service with Docker Compose, what happens to data stored within the container's writable layer?
Docker Compose automatically creates a shared volume for the scaled service, ensuring data consistency
Data is persisted only in the original container instance; scaled instances have their own independent data
Data is automatically replicated across all instances of the scaled service
Scaling a service with data persistence requires manual configuration of shared volumes or external data stores
How does Docker integrate with GitLab CI for automated testing?
GitLab CI can use Docker images to provide isolated environments for running tests
Docker replaces the need for a separate testing framework
GitLab CI automatically generates Dockerfiles based on project code
Docker directly executes test suites within the GitLab CI/CD platform
What is the role of a Docker registry in a CI/CD pipeline?
To execute automated tests within isolated containers
To store and manage Docker images
To monitor application performance in real-time
To define the steps of the continuous integration process
What role does a manager node play in a Docker Swarm cluster?
Manages cluster state, schedules tasks, and ensures service availability
Executes the actual application tasks within containers
Provides networking and load balancing for the cluster
Stores and distributes Docker images to worker nodes
When might a bind mount be a suitable choice for data persistence in Docker?
When you need to share sensitive configuration files between the host and a container.
When you want to leverage the scalability and redundancy of cloud storage.
When you need to share data between multiple Docker containers running on the same host.
When you require data portability across different Docker environments.
What is the purpose of volume drivers in Docker?
To improve the performance of volume operations.
To manage the lifecycle of bind mounts.
To restrict container access to specific volumes.
To enable the use of remote storage or cloud-based solutions for volumes.
Which command is used to list all running Docker containers?
docker images
docker run
docker start
docker ps
What is the default networking mode in Docker Compose when no explicit network configuration is provided?
None
Overlay
Bridge
Host
Which of the following is NOT a valid health check type in a Dockerfile?
TCP
HTTP
CMD
NONE