ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 69 - DCA discussion

Report
Export

Will this command ensure that overlay traffic between service tasks is encrypted?

Solution: docker service create --network--encrypted

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

= The command docker service create --network --encrypted willnotensure that overlay traffic between service tasks is encrypted.This is because the --network flag requires an argument that specifies the name or ID of the network to connect the service to1.The --encrypted flag isnota valid option for docker service create2.To encrypt overlay traffic between service tasks, you need to use the --opt encrypted flag on docker network create when you create the overlay network3. For example:

docker network create --opt encrypted --driver overlay my-encrypted-network

Then, you can use the --network flag on docker service create to connect the service to the encrypted network. For example:

docker service create --network my-encrypted-network my-service

docker service create | Docker Documentation

docker service create | Docker Documentation

Manage swarm service networks | Docker Docs

I hope this helps you understand the command and the encryption, and how they work with Docker and swarm. If you have any other questions related to Docker, please feel free to ask me.

asked 08/11/2024
rami Awad
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first