Skip to content

[Windows] Could not find a valid Docker environment. #350

@alex120fantom

Description

@alex120fantom

Trying to run simple container
new GenericContainer("nginx").withExposedPorts(80);

INFO [main] [DockerClientProviderStrategy] Found docker-machine, and will use machine named
ERROR [main] [DockerClientProviderStrategy] Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
ERROR [main] [DockerClientProviderStrategy] EnvironmentAndSystemPropertyClientProviderStrategy: failed with exception NoClassDefFoundError (Could not initialize class org.testcontainers.shaded.io.netty.channel.epoll.IovArray)
ERROR [main] [DockerClientProviderStrategy] UnixSocketClientProviderStrategy: failed with exception InvalidConfigurationException (this strategy is only applicable to Linux)
ERROR [main] [DockerClientProviderStrategy] ProxiedUnixSocketClientProviderStrategy: failed with exception InvalidConfigurationException (this strategy is only applicable to OS X and Linux)
ERROR [main] [DockerClientProviderStrategy] DockerMachineClientProviderStrategy: failed with exception InvalidConfigurationException (Exception when executing docker-machine status )
ERROR [main] [DockerClientProviderStrategy] WindowsClientProviderStrategy: failed with exception TimeoutException (Timeout waiting for result with exception). Root cause ConnectException (Connection refused: no further information: localhost/127.0.0.1:2375)
ERROR [main] [DockerClientProviderStrategy] As no valid configuration was found, execution cannot continue

OS: Windows 10

C:\Users>docker --version
Docker version 17.03.1-ce, build c6d412e


C:\Users>docker-compose --version
docker-compose version 1.11.2, build f963d76f


C:\Users>docker-machine --version
docker-machine version 0.10.0, build 76ed2a6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions