Q61
Q61 How do you create a named volume in Docker?
docker create volume
docker volume create
docker volume new
docker volume init
Q62
Q62 How do you mount a volume to a Docker container?
docker run -v
docker mount
docker volume
docker attach
Q63
Q63 How do you remove an unused Docker volume?
docker remove volume
docker volume rm
docker clean volume
docker volume prune
Q64
Q64 How do you remove all unused Docker volumes?
docker volume prune
docker clean volumes
docker volume rm all
docker remove unused volumes
Q65
Q65 What should you check if a container cannot write to a mounted volume?
Container logs
Volume permissions
Docker Daemon
Volume name
Q66
Q66 You get an error 'volume is in use by a container.' How can you resolve this?
Stop the container using the volume
Recreate the volume
Rename the volume
Restart Docker
Q67
Q67 A container fails to start due to a missing volume. What should you do?
Recreate the volume
Restart Docker
Rebuild the container
Inspect the container logs
Q68
Q68 What is the default Docker network type?
bridge
host
none
overlay
Q69
Q69 What is the purpose of the Docker 'host' network?
Provides no networking
Connects containers to an external network
Uses the host's network stack directly
Creates an isolated network
Q70
Q70 Which command lists all Docker networks?
docker network list
docker network ls
docker networks
docker network show
Q71
Q71 What is the purpose of an 'overlay' network in Docker?
For standalone containers
For host-only networking
For multi-host container communication
For connecting to external networks
Q72
Q72 What is the key difference between 'bridge' and 'none' network types?
Bridge allows external communication, while none isolates containers
None uses host networking
Bridge is for multi-host networks
None is a deprecated network type
Q73
Q73 How do you inspect a specific Docker network?
docker inspect network
docker network inspect
docker show network
docker network info
Q74
Q74 How do you connect a container to a specific network?
docker network add
docker connect
docker network connect
docker attach network
Q75
Q75 How do you create a custom Docker network?
docker network new
docker network create
docker create network
docker new network
Q76
Q76 How do you disconnect a container from a network?
docker network disconnect
docker disconnect
docker network remove
docker detach network
Q77
Q77 What should you check if a container cannot connect to a network?
Container logs
Network connection status
DNS settings
Docker version
Q78
Q78 A container cannot resolve DNS queries. What might be the issue?
The host DNS is misconfigured
The container is stopped
The Docker service is down
The container is not part of a network
Q79
Q79 Multi-host communication fails in an overlay network. What should you check?
Firewall settings
Docker version
Container logs
Host operating system
Q80
Q80 What is Docker Compose primarily used for?
Building Docker images
Orchestrating multi-container applications
Monitoring Docker containers
Managing Docker networks
Q81
Q81 Which file is typically used to define a Docker Compose configuration?
compose.yml
docker-compose.yml
config.yaml
application.yml
Q82
Q82 Which command is used to start all services defined in a Docker Compose file?
docker-compose run
docker-compose start
docker-compose up
docker start compose
Q83
Q83 What is the default network created by Docker Compose?
host
none
overlay
bridge
Q84
Q84 What does the 'depends_on' key in a Docker Compose file specify?
Service dependencies
Container startup order
Volumes to be mounted
Network configurations
Q85
Q85 How do you stop all running services in a Docker Compose application?
docker-compose down
docker-compose stop
docker-compose terminate
docker stop compose
Q86
Q86 How do you remove all services and associated resources in a Docker Compose application?
docker-compose clean
docker-compose down
docker-compose remove
docker-compose rm
Q87
Q87 How do you scale a service to run 3 instances in Docker Compose?
docker-compose scale
docker-compose up -d --scale
docker-compose add
docker-compose expand
Q88
Q88 How do you view logs for all services in a Docker Compose application?
docker-compose logs
docker-compose show logs
docker-compose inspect logs
docker logs compose
Q89
Q89 What should you check if a service fails to start in Docker Compose?
Compose file syntax
Docker version
Network settings
Host operating system
Q90
Q90 A service in Docker Compose is unable to communicate with another service. What might be the issue?
Incorrect Docker Compose version
Service not part of the same network
Service dependencies not defined
Host machine firewall