Skip to content

Commit bdb49b8

Browse files
committed
do not override podmans host
Signed-off-by: Alex Goodman <[email protected]>
1 parent e55a045 commit bdb49b8

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module github.com/anchore/stereoscope
22

33
go 1.24.1
4-
toolchain go1.24.1
54

65
require (
76
github.com/GoogleCloudPlatform/docker-credential-gcr v2.0.5+incompatible

internal/docker/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import (
88
"runtime"
99
"strings"
1010

11-
"github.com/anchore/go-homedir"
1211
"github.com/docker/cli/cli/connhelper"
1312
"github.com/docker/docker/client"
13+
14+
"github.com/anchore/go-homedir"
1415
)
1516

1617
func GetClient() (*client.Client, error) {

internal/podman/client.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ func ClientOverSSH() (*client.Client, error) {
5454
clientOpts = append(clientOpts, func(c *client.Client) error {
5555
return client.WithHTTPClient(httpClient)(c)
5656
})
57-
// This http path is defined by podman's docs: https://github.com/containers/podman/blob/main/pkg/api/server/docs.go#L31-L34
58-
clientOpts = append(clientOpts, client.WithHost("http://d"))
5957

6058
c, err := client.NewClientWithOpts(clientOpts...)
6159
if err != nil {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
id_ed25519
22
id_ed25519.pub
33
authorized_keys
4-
4+
/ssh

0 commit comments

Comments
 (0)