Skip to content

Commit

Permalink
fix: testcontainers socket override checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Mar 27, 2024
1 parent 0ed8418 commit 6e468bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/core/docker_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ func extractDockerSocketFromClient(ctx context.Context, cli client.APIClient) st

testcontainersDockerSocket, err := dockerSocketOverridePath(ctx)
if err == nil {
return checkDefaultDockerSocket(ctx, cli, testcontainersDockerSocket)
if strings.HasPrefix(testcontainersDockerSocket, TCPSchema) {
return checkDefaultDockerSocket(ctx, cli, testcontainersDockerSocket)
}

return strings.Replace(testcontainersDockerSocket, DockerSocketSchema, "", 1)
}

dockerHost := extractDockerHost(ctx)
Expand Down

0 comments on commit 6e468bc

Please sign in to comment.