dockerdocker-for-windowsdocker-desktop

How to enable docker remote API in "Docker for Windows"


I have Docker Desktop for Windows 1.12.1-stable(build: 7135) installed on my Windows 10 machine. I want to access docker using the remote API through port 4243. I guess this port is not enabled by default. Do you have any idea how to open it?


Solution

  • You can edit the configuration for docker daemon. Add a daemon.json file in the following path: %ProgramData%\docker\config

    The file should contain something like this:

    {
       "hosts": ["tcp://0.0.0.0:4243"]
    }
    

    Then restart docker service.(eg Powershell: Restart-Service docker )

    References: