package
0.48.2
Repository: https://github.com/gruntwork-io/terratest.git
Documentation: pkg.go.dev

# Functions

Build runs the 'docker build' command at the given path with the given options and fails the test if there are any errors.
BuildE runs the 'docker build' command at the given path with the given options and returns any errors.
DeleteImage removes a docker image using the Docker CLI.
DeleteImageE removes a docker image using the Docker CLI.
DoesImageExist lists the images in the docker daemon and returns true if the given image label (repo:tag) exists.
GetDockerHost returns the name or address of the host on which the Docker engine is running.
GitCloneAndBuild builds a new Docker image from a given Git repo.
GitCloneAndBuildE builds a new Docker image from a given Git repo.
Inspect runs the 'docker inspect {container id}' command and returns a ContainerInspect struct, converted from the output JSON, along with any errors.
InspectE runs the 'docker inspect {container id}' command and returns a ContainerInspect struct, converted from the output JSON, along with any errors.
ListImages calls docker images using the Docker CLI to list the available images on the local docker daemon.
ListImagesE calls docker images using the Docker CLI to list the available images on the local docker daemon.
Push runs the 'docker push' command to push the given tag.
PushE runs the 'docker push' command to push the given tag.
Run runs the 'docker run' command on the given image with the given options and return stdout/stderr.
RunAndGetID runs the 'docker run' command on the given image with the given options and returns the container ID that is returned in stdout.
RunAndGetIDE runs the 'docker run' command on the given image with the given options and returns the container ID that is returned in stdout, or any error.
RunDockerCompose runs docker compose with the given arguments and options and return stdout/stderr.
RunDockerComposeAndGetStdout runs docker compose with the given arguments and options and returns only stdout.
RunDockerComposeE runs docker compose with the given arguments and options and return stdout/stderr.
RunE runs the 'docker run' command on the given image with the given options and return stdout/stderr, or any error.
Stop runs the 'docker stop' command for the given containers and return the stdout/stderr.
StopE runs the 'docker stop' command for the given containers and returns any errors.

# Structs

BuildOptions defines options that can be passed to the 'docker build' command.
ContainerInspect defines the output of the Inspect method, with the options returned by 'docker inspect' converted into a more friendly and testable interface.
HealthCheck represents the current health history of the container.
HealthLog represents the output of a single Health check of the container.
Image represents a docker image, and exports all the fields that the docker images command returns for the image.
Options are Docker options.
Port represents a single port mapping exported by the container.
RunOptions defines options that can be passed to the 'docker run' command.
StopOptions defines the options that can be passed to the 'docker stop' command.
VolumeBind represents a single volume binding made to the container.