Which open-source tool is commonly used to set up a private Docker Registry?
Docker Compose
Docker Hub
Docker Registry
Kubernetes
What is the primary advantage of using Docker volumes over bind mounts for data persistence?
Volumes are managed by Docker and provide data portability across different host environments.
Bind mounts are easier to back up and restore compared to Docker volumes.
Bind mounts are generally more secure than Docker volumes.
Volumes offer better performance compared to bind mounts.
What is the default networking mode in Docker Compose when no explicit network configuration is provided?
Bridge
Host
Overlay
None
How does Docker contribute to improved security in CI/CD?
Docker enforces strict access control policies on application code
Docker automatically encrypts data at rest and in transit
Docker's containerization provides isolation, limiting the impact of vulnerabilities
Docker eliminates the need for security updates by isolating applications
What is the purpose of the 'docker push' command in the context of a Docker Registry?
Build a Docker image from a Dockerfile
Upload an image to a registry
Download an image from a registry
Run a Docker container from an image
What is the role of a Docker registry in a CI/CD pipeline?
To execute automated tests within isolated containers
To define the steps of the continuous integration process
To monitor application performance in real-time
To store and manage Docker images
How do you retrieve the IP address of a running Docker container using 'docker inspect'?
docker inspect <container_name> | grep IPAddress
docker inspect <container_name> | find 'IP'
docker inspect -f '{{.NetworkSettings.IPAddress}}' <container_name>
docker inspect <container_name> --format IP
What is the purpose of 'docker exec' command?
To execute a command inside a running container
To list all available Docker images
To build a Docker image from a Dockerfile
To push a Docker image to a registry
What is the purpose of a Swarm service's 'update_config' setting?
To change the environment variables for the service's containers
To automatically update the service's Docker image to the latest version
To scale the number of replicas for the service up or down
To configure how updates to the service are rolled out across replicas
In a GitHub Actions workflow, what is the purpose of the 'docker build' command?
To build a Docker image based on a Dockerfile
To download and install Docker on the runner machine
To run automated tests inside a Docker container
To push a pre-built Docker image to a registry