containerrt

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecInContainer

func ExecInContainer(ctx context.Context, log *logger.Logger, host, containerName string, cmd []string) ([]byte, error)

ExecInContainer runs a command inside a container and returns its stdout.

func ListLocalImages

func ListLocalImages(ctx context.Context, host string) ([]string, error)

func ParseCrictlImages

func ParseCrictlImages(data []byte) ([]string, error)

ParseCrictlImages extracts image tags from `crictl images -o json` output.

func ResolveSocket

func ResolveSocket(log *logger.Logger) string

ResolveSocket returns the container runtime socket URI by checking DOCKER_HOST, then probing well-known paths for Docker, Podman. Returns "" if none found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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