2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 23:27:17 +08:00
Files
panel/internal/data/helper.go
2025-11-28 04:22:42 +08:00

17 lines
268 B
Go

package data
import (
"fmt"
"github.com/moby/moby/client"
)
func getDockerClient(sock string) (*client.Client, error) {
apiClient, err := client.New(client.WithHost(fmt.Sprintf("unix://%s", sock)))
if err != nil {
return nil, err
}
return apiClient, nil
}