ctr

package
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "ctr",
	Short: "Run `ctr` with connection to RKE2 containerd",
	Run: func(c *cobra.Command, args []string) {
		ctrBin := "/var/lib/rancher/rke2/bin/ctr"
		ctrArgs := []string{
			"--address", "/run/k3s/containerd/containerd.sock",
			"--namespace", "k8s.io",
		}
		ctrArgs = append(ctrArgs, args...)
		err := exec_utils.ExecOut(ctrBin, ctrArgs...)
		if err != nil {
			log.Fatalln(err)
		}
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL