testcontainers-java: [Windows] Could not find a valid Docker environment.
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
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 17 (9 by maintainers)
Try to enable following:
@WPanayides I would suggest to discuss that in Pycharm’s community then.
Testcontainers supports npipe and does not require exposing the TCP port.