ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 68 - DCA discussion

Report
Export

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

Solution: docker service create --network--secure

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

: = The commanddocker service create --network --securewill not ensure that overlay traffic between service tasks is encrypted.This is because the--secureoption is not a valid option for thedocker service createcommand1.To ensure that overlay traffic between service tasks is encrypted, you need to use the--opt encryptedoption when creating the overlay network with thedocker network createcommand2. For example, to create an encrypted overlay network namedmy-net, you can use the following command:

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

Then, you can use the--network my-netoption when creating the service with thedocker service createcommand3. For example, to create a service namedmy-serviceusing thenginximage and themy-netnetwork, you can use the following command:

docker service create --name my-service --network my-net nginx

docker service create | Docker Docs

Use overlay networks | Docker Docs

Create a service | Docker Docs

asked 08/11/2024
David Hartnett
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first