Documentation
¶
Overview ¶
Package nerdctl implements the runtime.Runtime interface using the ctrctl CLI wrapper. This supports the nerdctl CLI.
Index ¶
- type Nerdctl
- func (c *Nerdctl) Close() error
- func (c *Nerdctl) ImageExists(_ context.Context, imageRef string) bool
- func (c *Nerdctl) InspectSelf(_ context.Context) (runtime.ContainerInfo, error)
- func (c *Nerdctl) Ping(_ context.Context) error
- func (c *Nerdctl) PullImage(_ context.Context, imageRef string) error
- func (c *Nerdctl) RunContainer(_ context.Context, info runtime.ContainerInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nerdctl ¶
type Nerdctl struct {
// contains filtered or unexported fields
}
Nerdctl implements runtime.Runtime by shelling out to a container CLI.
func New ¶
New creates a Ctrctl runtime using the specified CLI command. cli is the command prefix, e.g. []string{"nerdctl"} or []string{"docker"}.
func (*Nerdctl) ImageExists ¶
ImageExists reports whether the given image reference exists locally.
func (*Nerdctl) InspectSelf ¶
InspectSelf inspects the current container using os.Hostname() as the container ID.
func (*Nerdctl) RunContainer ¶
RunContainer creates and starts a detached container with the given configuration.
Click to show internal directories.
Click to hide internal directories.