INNER CODE UNIT · Go
runDebuggerContainerd
iximiuz/cdebug · cmd/exec/exec_containerd.go:31
func runDebuggerContainerd(ctx context.Context, cli cliutil.CLI, opts *options) error {
if opts.detach {
return errors.New("--detach|-d flag is not supported for containerd runtime yet")
}
if strings.Contains(opts.namespace, "/") {
return errors.New("namespaces with '/' are unsupported")
}
client, err := containerd.NewClient(containerd.Options{
Out: cli.AuxStream(),
Address: opts.runtime,
Namespace: opts.namespace,
})
if err != nil {
return err
}