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. 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?

PrepAway - Latest Free Exam Questions & Answers

A.
Run the New-NetFirewallRulecmdlet.

B.
Run the Set-ServiceWindows PowerShell cmdlet.

C.
Edit the daemon.json file.

D.
Edit the configuration json file.

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

  1. musiman says:

    Answer: C.

    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.

    This sample configures the Docker Engine to accept incoming connections on port 2375. All other configuration options will use default values.

    {
    “hosts”: [“tcp://0.0.0.0:2375”]
    }

    this sample configures the Docker daemon to only accept secured connections over port 2376.

    {
    “hosts”: [“tcp://0.0.0.0:2376”, “npipe://”],
    “tlsverify”: true,
    “tlscacert”: “C:\\ProgramData\\docker\\certs.d\\ca.pem”,
    “tlscert”: “C:\\ProgramData\\docker\\certs.d\\server-cert.pem”,
    “tlskey”: “C:\\ProgramData\\docker\\certs.d\\server-key.pem”,
    }

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




    0



    0

Leave a Reply