Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 90056a8

Browse files
committed
Use HTTP when connecting over TCP socket
1 parent 43d649c commit 90056a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.2
1+
0.0.3

img2lambda/extract/repack_image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func RepackImage(imageName string, layerOutputDir string) (layers []types.Lambda
3737
// Support communicating with Docker for Windows over local plain-text TCP socket
3838
dockerHost := os.Getenv("DOCKER_HOST")
3939
if dockerHost == "tcp://localhost:2375" || dockerHost == "tcp://127.0.0.1:2375" {
40-
sys.DockerDaemonHost = dockerHost
40+
sys.DockerDaemonHost = strings.Replace(dockerHost, "tcp://", "http://", -1)
4141
}
4242

4343
ctx := context.Background()

0 commit comments

Comments
 (0)