Documentation
¶
Index ¶
- func GetNonLoopbackLocalIPForWSL() string
- func IsDockerRunningInWSL2(dockerClient *Docker) (bool, error)
- func VerifyDockerIsAvailable() error
- type Docker
- func (d *Docker) Build(dockerfile, srcPath, imageTag string, buildArgs map[string]string, ...) error
- func (d *Docker) ContainerCreate(config *container.Config, hostConfig *container.HostConfig, ...) (string, error)
- func (d *Docker) ImagePull(rawImage string, opts types.ImagePullOptions) error
- func (d *Docker) RemoveByLabel(labels map[string]string) error
- func (d *Docker) Version() string
- type ErrorDetail
- type ErrorLine
- type Line
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNonLoopbackLocalIPForWSL ¶ added in v1.50.1
func GetNonLoopbackLocalIPForWSL() string
GetNonLoopbackLocalIPForWSL returns the non loopback local IP of the host interface eth0, used for running docker in linux for WSL support
func IsDockerRunningInWSL2 ¶ added in v1.50.1
IsDockerRunningInWSL2 checks if Docker is running in WSL2
func VerifyDockerIsAvailable ¶
func VerifyDockerIsAvailable() error
Types ¶
type Docker ¶
func (*Docker) ContainerCreate ¶
func (d *Docker) ContainerCreate(config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, name string) (string, error)
type ErrorDetail ¶
type ErrorDetail struct {
Message string `json:"message"`
}
type ErrorLine ¶
type ErrorLine struct {
Error string `json:"error"`
ErrorDetail ErrorDetail `json:"errorDetail"`
}
Click to show internal directories.
Click to hide internal directories.