Skip to content

Commit 604ae2c

Browse files
0xcedHofmeisterAn
andauthored
chore: Improve error message when Docker is not running (#987)
Co-authored-by: Andre Hofmeister <9199345+HofmeisterAn@users.noreply.github.com>
1 parent 31e0b9b commit 604ae2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Testcontainers/Builders/AbstractBuilder`4.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected virtual TBuilderEntity Init()
126126
/// <exception cref="ArgumentException">Thrown when a mandatory Docker resource configuration is not set.</exception>
127127
protected virtual void Validate()
128128
{
129-
const string message = "Cannot detect the Docker endpoint. Use either the environment variables or the ~/.testcontainers.properties file to customize your configuration:\nhttps://dotnet.testcontainers.org/custom_configuration/";
129+
const string message = "Docker is either not running or misconfigured. Please ensure that Docker is running and that the endpoint is properly configured. You can customize your configuration using either the environment variables or the ~/.testcontainers.properties file. For more information, visit:\nhttps://dotnet.testcontainers.org/custom_configuration/";
130130
_ = Guard.Argument(DockerResourceConfiguration.DockerEndpointAuthConfig, nameof(IResourceConfiguration<TCreateResourceEntity>.DockerEndpointAuthConfig))
131131
.ThrowIf(argument => argument.Value == null, argument => new ArgumentException(message, argument.Name));
132132
}

0 commit comments

Comments
 (0)