Use this method only for special cases and custom configurations. TCP socket: This method should work for any Docker version and operating system. If the Connection successful message doesn't appear, check your Docker Machine executable setting on the Docker | Tools page. If you get permission denied errors, add the current user to the docker group on the machine, log out, and then log back in.ĭocker Machine: If you are using Docker Toolbox for Windows or macOS, this is the recommended option for connecting to the Docker API. Unix socket: This is the recommended connection option for Linux. Otherwise, enable connection to Docker via the TCP protocol: Right-click the Docker icon on the Notification bar, select Settings from the context menu, and then select the Expose daemon on tcp://localhost:2375 without TLS checkbox in the General section of your system Docker settings.ĭocker for Mac: The recommended option when using Docker Desktop for Mac. Select the method for connecting to the Docker API.ĭocker for Windows: The recommended option when using Docker Desktop for Windows.