testcontainers / testcontainers/testcontainers-java

Improve error messaging when no docker-machine VM exists

Open
#307 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

client/docker-machine help wanted resolution/acknowledged resolution/somedaymaybe type/feature
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

e.g. in the case where the docker-machine tool is found but there's no VM.

At present the logged error is quite unhelpful:

o.t.d.DockerClientProviderStrategy       :     DockerMachineClientProviderStrategy: failed with exception InvalidConfigurationException (Exception when executing docker-machine status default)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating DockerMachineClientProviderStrategy, the entry point named in the logged error, and reproduce the case where docker-machine exists without a default VM. Done means the resulting error clearly explains that no VM is available instead of reporting only the generic status-execution exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
devops, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.