Installation, Storage, and Compute with Windows Server 2016 — Question 228
You have a server named Server1 that runs Windows Server 2016. The Docker daemon runs on Server1. You need to configure the Docker daemon to accept connections only on TCP port 64500.
What should you do?
Answer options
- A. Modify the routing table on Server1
- B. Run the Set-Service Windows PowerShell cmdlet
- C. Edit the configuration.json file
- D. Run the sc config command
- E. Run the Set-NetFirewallPortFilter cmdlet
- F. Run the New-NetFirewallRule cmdlet
- G. Run the sc control command
Correct answer: D
Explanation
The correct answer is D because the 'sc config' command is used to modify the service configuration, allowing you to restrict the Docker daemon to listen only on the specified TCP port. The other options either do not modify service configurations directly (A, B, C, E, F, G) or do not achieve the goal of limiting port access.