Help us shape the future of Go! Take the 2026 Go Developer Survey

docker

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "docker"

	DefaultConfig      = "/etc/docker/daemon.json"
	DefaultSocket      = "/var/run/docker.sock"
	DefaultRestartMode = "signal"
)

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(c *cli.Command, o *container.Options) error

Cleanup reverts docker configuration to remove the nvidia runtime and reloads it

func Flags

func Flags(opts *Options) []cli.Flag

func GetLowlevelRuntimePaths

func GetLowlevelRuntimePaths(o *container.Options) ([]string, error)

func RestartDocker

func RestartDocker(o *container.Options) error

RestartDocker restarts docker depending on the value of restartModeFlag

func Setup

func Setup(c *cli.Command, o *container.Options) error

Setup updates docker configuration to include the nvidia runtime and reloads it

func SignalDocker

func SignalDocker(socket string) error

SignalDocker sends a SIGHUP signal to docker daemon

Types

type Options

type Options struct{}

Jump to

Keyboard shortcuts

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