21.) What is the main use case for the –link flag in Docker?
A) Connecting containers on different networks
B) Creating a new network
C) Connecting containers for legacy applications
D) Encrypting container communication
22.) How do you remove a Docker network?
A) docker network delete <network>
B) docker network rm <network>
C) docker network remove <network>
D) docker rm –network <network>
23.) What is the default network mode for Docker Compose services?
A) Host
B) None
C) Bridge
D) Overlay
24.) What is the role of –internal in Docker networks?
A) It prevents external access to the network.
B) It enables encrypted communication.
C) It connects containers across hosts.
D) It allows containers to bypass the DNS.
25.) How do you enable encrypted communication in an overlay network?
A) –secure
B) –encrypted
C) –driver overlay –opt encrypted
D) –tls
Related