doctor

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: GPL-3.0, LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package doctor provides host prerequisite checks for sind.

Index

Constants

View Source
const MinDockerMajor = 28

MinDockerMajor is the minimum required Docker Engine major version.

Variables

This section is empty.

Functions

func CgroupInfo

func CgroupInfo(fs afero.Fs) (mountPath string, hasV2, hasNsdelegate bool)

CgroupInfo reads /proc/mounts from fs and returns the cgroup2 mount path, whether cgroup2 is mounted at all, and whether nsdelegate is enabled.

func CheckDockerVersion

func CheckDockerVersion(version string) error

CheckDockerVersion returns an error if the Docker version string is below MinDockerMajor or cannot be parsed.

func ParseVersion

func ParseVersion(s string) (major, minor int, err error)

ParseVersion extracts the major and minor version numbers from a Docker version string such as "28.0.0" or "29.3.1-beta.1".

Types

This section is empty.

Jump to

Keyboard shortcuts

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