ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 45 - DCA discussion

Report
Export

Does this command create a swarm service that only listens on port 53 using the UDP protocol?

Solution: 'docker service create --name dns-cache -p 53:53/udp dns-cache'

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: A

Explanation:

= The command 'docker service create --name dns-cache -p 53:53/udp dns-cache' creates a swarm service that only listens on port 53 using the UDP protocol.This is because the -p flag specifies the port mapping between the host and the service, and the /udp suffix indicates the protocol to use1.Port 53 is commonly used for DNS services, which use UDP as the default transport protocol2. The dns-cache argument is the name of the image to use for the service.

docker service create | Docker Documentation

DNS - Wikipedia

I hope this helps you understand the command and the protocol, 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
Ishan Patel
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first