DCA · Question #111
Will this command ensure that overlay traffic between service tasks is encrypted? Solution: docker network create -d overlay --secure
The correct answer is B. No. The docker network create -d overlay --secure command does not encrypt overlay traffic; instead, the --opt encrypted flag must be used with overlay networks.
Question
Will this command ensure that overlay traffic between service tasks is encrypted? Solution: docker network create -d overlay --secure
Options
- AYes
- BNo
How the community answered
(22 responses)- A9% (2)
- B91% (20)
Why each option
The `docker network create -d overlay --secure` command does not encrypt overlay traffic; instead, the `--opt encrypted` flag must be used with overlay networks.
The `--secure` flag does not enable encryption for Docker overlay networks.
The `--secure` flag is not a valid option for `docker network create` to enable encryption. To encrypt overlay traffic in Docker Swarm, the `docker network create --opt encrypted` flag must be explicitly passed when creating the overlay network.
Concept tested: Docker Swarm overlay network encryption
Source: https://docs.docker.com/network/overlay/
Topics
Community Discussion
No community discussion yet for this question.