Upgrading Your Skills to MCSA: Windows Server 2016 — Question 84
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. Run the sc control command.
- B. Run the New-NetFirewallRule cmdlet.
- C. Modify the routing table on Server1.
- D. Run the sc config command.
- E. Edit the configuration.json file
- F. Run the Set-Service Windows PowerShell cmdlet
Correct answer: D
Explanation
The correct answer is D, as running the sc config command allows you to configure the service, including setting the listening port for the Docker daemon. The other options do not directly change the Docker configuration to restrict connections to the specified TCP port.