MCPcopy Index your code
hub / github.com/containerd/containerd / createShimDebugConfig

Function createShimDebugConfig

integration/client/client.go:57–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func createShimDebugConfig() string {
58 f, err := os.CreateTemp("", "containerd-config-")
59 if err != nil {
60 fmt.Fprintf(os.Stderr, "Failed to create config file: %s\n", err)
61 os.Exit(1)
62 }
63 defer f.Close()
64 if _, err := f.WriteString("version = 2\n"); err != nil {
65 fmt.Fprintf(os.Stderr, "Failed to write to config file %s: %s\n", f.Name(), err)
66 os.Exit(1)
67 }
68
69 if _, err := f.WriteString("[plugins.\"io.containerd.runtime.v1.linux\"]\n\tshim_debug = true\n"); err != nil {
70 fmt.Fprintf(os.Stderr, "Failed to write to config file %s: %s\n", f.Name(), err)
71 os.Exit(1)
72 }
73
74 return f.Name()
75}

Callers 2

startDaemonFunction · 0.85
TestMainFunction · 0.85

Calls 3

ExitMethod · 0.80
CloseMethod · 0.65
NameMethod · 0.65

Tested by 2

startDaemonFunction · 0.68
TestMainFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…