serverctl/services/entry/pkg/infrastructure/dependencies/docker.go

17 lines
304 B
Go
Raw Permalink Normal View History

2022-02-16 16:27:48 +01:00
package dependencies
import (
"github.com/docker/docker/client"
"go.uber.org/zap"
)
func setupDocker(l *zap.Logger) *client.Client {
l.Info("Setting up Docker")
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
if err != nil {
panic(err)
}
return cli
}