PrepAway - Latest Free Exam Questions & Answers

You need to configure the Docker daemon to accept conne…

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?

PrepAway - Latest Free Exam Questions & Answers

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.

Explanation:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon

One Comment on “You need to configure the Docker daemon to accept conne…

  1. Reginaldo says:

    The preferred method for configuring the Docker Engine on Windows is using a configuration file. The configuration file can be found at ‘C:\ProgramData\Docker\config\daemon.json’. If this file does not already exist, it can be created.

    But

    The Docker Engine can also be configured by modifying the Docker service using sc config. Using this method, Docker Engine flags are set directly on the Docker service. Run the following command in a command prompt (cmd.exe not PowerShell):

    sc config docker binpath= “\”C:\Program Files\docker\dockerd.exe\” –run-service -H tcp://0.0.0.0:2375″

    Note: You do not need to run this command if your daemon.json file already contains the “hosts”: [“tcp://0.0.0.0:2375”] entry.




    5



    0

Leave a Reply