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

Commit

Permalink
Use HTTP when connecting over TCP socket
Browse files Browse the repository at this point in the history
  • Loading branch information
clareliguori committed Jan 24, 2019
1 parent 43d649c commit 90056a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.2
0.0.3
2 changes: 1 addition & 1 deletion img2lambda/extract/repack_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func RepackImage(imageName string, layerOutputDir string) (layers []types.Lambda
// Support communicating with Docker for Windows over local plain-text TCP socket
dockerHost := os.Getenv("DOCKER_HOST")
if dockerHost == "tcp://localhost:2375" || dockerHost == "tcp://127.0.0.1:2375" {
sys.DockerDaemonHost = dockerHost
sys.DockerDaemonHost = strings.Replace(dockerHost, "tcp://", "http://", -1)
}

ctx := context.Background()
Expand Down

0 comments on commit 90056a8

Please sign in to comment.