Does this command create a swarm service that only listens on port 53 using the UDP protocol?
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
B . No
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.
Reference: 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.
Latest DCA Dumps Valid Version with 55 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund