Documentation ¶
Overview ¶
Handler for Docker containers.
Index ¶
- Variables
- func ContainerNameToDockerId(name string) string
- func DockerImages() ([]docker.APIImages, error)
- func DockerInfo() (map[string]string, error)
- func DockerStateDir() string
- func FullContainerName(dockerId string) string
- func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo) error
- func RootDir() string
- func UseSystemd() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ArgDockerEndpoint = flag.String("docker", "unix:///var/run/docker.sock", "docker endpoint")
View Source
var DockerNamespace = "docker"
The namespace under which Docker aliases are unique.
Functions ¶
func ContainerNameToDockerId ¶
Returns the Docker ID from the full container name.
func DockerImages ¶ added in v0.18.0
func DockerImages() ([]docker.APIImages, error)
func DockerInfo ¶ added in v0.18.0
func DockerStateDir ¶
func DockerStateDir() string
TODO(vmarmol): Export run dir too for newer Dockers. Directory holding Docker container state information.
func FullContainerName ¶
Returns a full container name for the specified Docker ID.
func Register ¶
func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo) error
Register root container before running this function!
func UseSystemd ¶
func UseSystemd() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.