# Packages
No description provided by the author
# Functions
AddDefaultLabels adds the default labels for sessionID to target.
deprecated see https://github.com/testcontainers/testcontainers-java/blob/main/core/src/main/java/org/testcontainers/dockerclient/DockerClientConfigUtils.java#L46.
DefaultLabels returns the standard set of labels which includes LabelSessionID if the reaper is enabled.
ExtractImagesFromDockerfile extracts images from the Dockerfile sourced from dockerfile.
ExtractImagesFromReader extracts images from the Dockerfile sourced from r.
ExtractRegistry extracts the registry from the image name, using a regular expression to extract the registry from the image name.
InAContainer returns true if the code is running inside a container See https://github.com/docker/docker/blob/a9fa38b1edf30b23cae3eade0be48b3d4b1de14b/daemon/initlayer/setup_unix.go#L25.
IsURL checks if the string is an URL.
IsWindows returns if the current OS is Windows.
MergeCustomLabels sets labels from src to dst.
MustExtractDockerHost Extracts the docker host from the different alternatives, caching the result to avoid unnecessary calculations.
MustExtractDockerSocket Extracts the docker socket from the different alternatives, removing the socket schema and caching the result to avoid unnecessary calculations.
NewClient returns a new docker client extracting the docker host from the different alternatives.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
LabelBase is the base label for all testcontainers labels.
LabelLang specifies the language which created the test container.
LabelReap specifies the container should be reaped by the reaper.
LabelReaper identifies the container as a reaper.
LabelRyuk identifies the container as a ryuk.
LabelSessionID specifies the session ID of the container.
LabelVersion specifies the version of testcontainers which created the container.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DockerEnvFile is the file that is created when running inside a container.
No description provided by the author
DockerSocketPath is the path to the docker socket under unix systems.
DockerSocketPathWithSchema is the path to the docker socket under unix systems with the unix schema.
DockerSocketSchema is the unix schema.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrTestcontainersHostNotSetInProperties this error is specific to Testcontainers.
No description provided by the author
TCPSchema is the tcp schema.
WindowsDockerSocketPath is the path to the docker socket under windows systems.