3

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?

veben
  • 19,637
  • 14
  • 60
  • 80
mynkow
  • 4,408
  • 4
  • 38
  • 65

1 Answers1

5

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:

Mariano
  • 88
  • 1
  • 5
  • This seems to have changed. Looking at the second link it states `%programdata%\docker\config\daemon.json` as the configuration file. – Sven M. May 03 '17 at 12:47
  • Keep in mind this is very insecure and opens up connections from any IP Address on the port specified, here's an [updated reference from Microsoft](https://learn.microsoft.com/en-us/virtualization/windowscontainers/management/manage_remotehost) for the secure method – ddrake12 Jul 24 '18 at 15:05
  • This does not seem to be working anymore. See https://stackoverflow.com/q/62433679/1374678 – rolve Feb 27 '21 at 09:24