Skip to content

Commit

Permalink
add a cert-path parameter to allow private docker certs for tcp conne…
Browse files Browse the repository at this point in the history
…ctions (#176)
  • Loading branch information
craftyc0der committed Feb 25, 2022
1 parent ed3312a commit 5a874fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/dockle/main.go
Expand Up @@ -147,7 +147,12 @@ OPTIONS:
EnvVar: "DOCKLE_NON_SSL",
Usage: "registry connect without ssl",
},

cli.StringFlag{
Name: "cert-path",
EnvVar: "DOCKLE_CERT_PATH",
Usage: "docker daemon certificate path",
Value: dockerSockPath,
},
cli.StringFlag{
Name: "cache-dir",
Usage: "cache directory",
Expand Down
1 change: 1 addition & 0 deletions pkg/run.go
Expand Up @@ -60,6 +60,7 @@ func Run(c *cli.Context) (err error) {
Password: c.String("password"),
InsecureSkipTLSVerify: c.Bool("insecure"),
DockerDaemonHost: c.String("host"),
DockerDaemonCertPath: c.String("cert-path"),
SkipPing: true,
}
var imageName string
Expand Down

0 comments on commit 5a874fb

Please sign in to comment.