Skip to content

Commit

Permalink
udocker: add DefaultDockerSockClient()
Browse files Browse the repository at this point in the history
  • Loading branch information
joonas-fi committed Nov 17, 2023
1 parent f1d76e2 commit 355fe20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/udocker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import (

type certificateLoader func() (*tls.Certificate, error)

func DefaultDockerSockClient() (*http.Client, string, error) {
return Client("unix:///var/run/docker.sock", nil, false)
}

func Client(
dockerUrl string,
clientCertificateLoader certificateLoader,
Expand Down

0 comments on commit 355fe20

Please sign in to comment.