MCPcopy Create free account
hub / github.com/containerd/nerdctl / NewRootlessKitClient

Function NewRootlessKitClient

pkg/rootlessutil/rootlessutil_linux.go:64–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func NewRootlessKitClient() (client.Client, error) {
65 stateDir, err := RootlessKitStateDir()
66 if err != nil {
67 return nil, err
68 }
69 apiSock := filepath.Join(stateDir, "api.sock")
70 return client.New(apiSock)
71}
72
73// RootlessContainredSockAddress returns sock address of rootless containerd based on https://github.com/containerd/nerdctl/blob/main/docs/faq.md#containerd-socket-address
74func RootlessContainredSockAddress() (string, error) {

Callers

nothing calls this directly

Calls 1

RootlessKitStateDirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…