Installation, Storage, and Compute with Windows Server 2016 — Question 272
You have a server named Server1 that runs Windows Server 2016. You install the Docker daemon 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 theNew-NetFirewallRule cmdlet
- B. Run the Set-ServiceWindows PowerShell cmdlet
- C. Edit the daemon.json file
- D. Edit the configuration json file
Correct answer: C
Explanation
The correct answer is C because the daemon.json file is where you configure the Docker daemon's settings, including the ports it listens on. The other options either pertain to firewall rules or service settings, which do not directly configure the Docker daemon's listening port.