Skip to content

Commit

Permalink
add windows pipe for connecting to docker on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kb019 committed Oct 1, 2024
1 parent e6c0974 commit 742b9b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ private String determineDefaultDockerHost() {

private String determineWindowsDockerHost() {
if (determineDockerForWindowsHost()) {
return DockerHelper.DEFAULT_HOST_DOCKER_FOR_WINDOWS;
return DockerHelper.DEFAULT_WINDOWS_PIPE_FOR_DOCKER;
} else {
return determineDockerToolboxHost();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public class DockerHelper {
public static final String DOCKER_MYSQL_PASSWORD = "Admin123";
private static final String DOCKER_HOST_KEY = "dockerHost";
public static final String DEFAULT_DOCKER_HOST_UNIX_SOCKET = "unix:///var/run/docker.sock";
public static final String DEFAULT_HOST_DOCKER_FOR_WINDOWS = "tcp://127.0.0.1:2375/";
public static final String DEFAULT_HOST_DOCKER_FOR_WINDOWS = "http://127.0.0.1:2375/";
public static final String DEFAULT_WINDOWS_PIPE_FOR_DOCKER = "npipe:////./pipe/docker_engine";

private static final String DOCKER_HOST_MSG_WINDOWS = "To use dockerized MySQL, You have to pass Docker Host URL to SDK. " +
"You should run SDK from docker-machine command line, so SDK can connect to your Docker. Your individual docker host URL can be obtained by calling command" +
Expand Down

0 comments on commit 742b9b8

Please sign in to comment.