Installation, Storage, and Compute with Windows Server 2016 — Question 193
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 the New-NetFirewallRule cmdlet
- B. Run the Set-Service Windows PowerShell cmdlet
- C. Edit the daemon.json file
- D. Edit the configuration json file
- E. Modify the routing table on Server1
- F. Run the sc control command
- G. Run the Set-NetFirewallPortFilter cmdlet
Correct answer: C
Explanation
The correct answer is C, as modifying the daemon.json file allows you to specify the TCP port that the Docker daemon should listen on. The other options do not provide the necessary configuration for the Docker daemon's TCP port settings.