Documentation ¶
Index ¶
- type Helper
- func (h *Helper) CheckAndPull(image string, out io.Writer) error
- func (h *Helper) GetContainerState(id string) (exists, running bool, err error)
- func (h *Helper) HasInsecureRegistryArg() (bool, error)
- func (h *Helper) HostIP() string
- func (h *Helper) ListContainerNames() ([]string, error)
- func (h *Helper) RemoveContainer(id string) error
- func (h *Helper) StopAndRemoveContainer(container string) error
- func (h *Helper) Version() (*semver.Version, error)
- type RegistryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper provides utility functions to help with Docker
func (*Helper) CheckAndPull ¶
CheckAndPull checks whether a Docker image exists. If not, it pulls it.
func (*Helper) GetContainerState ¶
GetContainerState returns whether a container exists and if it does whether it's running
func (*Helper) HasInsecureRegistryArg ¶
HasInsecureRegistryArg checks whether the docker daemon is configured with the appropriate insecure registry argument
func (*Helper) ListContainerNames ¶
func (*Helper) RemoveContainer ¶
RemoveContainer removes the container with the given id
func (*Helper) StopAndRemoveContainer ¶
type RegistryConfig ¶
type RegistryConfig struct {
InsecureRegistryCIDRs []string
}
Click to show internal directories.
Click to hide internal directories.