org.testcontainers.containers.ContainerFetchException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 170#233210434
    via GitHub by dbyron0
    ,
  • test failures in version 1.1.0
    via GitHub by dbyron0
    ,
  • GitHub comment 170#233209342
    via GitHub by dbyron0
    ,
  • GitHub comment 170#230904684
    via GitHub by dbyron0
    ,
  • Increasing threads in Undertow server
    via Stack Overflow by nirvanastack
    ,
  • Too Many Open Files
    via by smonasco,
  • too many open files, akka 2.1.2, java api
    via by Alper Akture,
    • org.testcontainers.containers.ContainerFetchException: Can't get Docker image name from org.testcontainers.images.RemoteDockerImage@fac80 at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:689) at org.testcontainers.containers.GenericContainer.setDockerImageName(GenericContainer.java:677) at org.testcontainers.containers.GenericContainer.<init>(GenericContainer.java:140) at org.testcontainers.junit.wait.AbstractWaitStrategyTest.startContainerWithCommand(AbstractWaitStrategyTest.java:57) at org.testcontainers.junit.wait.AbstractWaitStrategyTest.waitUntilReadyAndTimeout(AbstractWaitStrategyTest.java:85) at org.testcontainers.junit.wait.HostPortWaitStrategyTest.testWaitUntilReady_Timeout(HostPortWaitStrategyTest.java:30) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.lang.IllegalStateException: failed to create a child event loop at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:81) at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:48) at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:57) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:67) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:54) at com.github.dockerjava.netty.DockerCmdExecFactoryImpl$InetSocketInitializer.init(DockerCmdExecFactoryImpl.java:241) at com.github.dockerjava.netty.DockerCmdExecFactoryImpl.init(DockerCmdExecFactoryImpl.java:197) at com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:159) at com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:45) at org.testcontainers.dockerclient.DockerClientProviderStrategy.getClientForConfig(DockerClientProviderStrategy.java:103) at org.testcontainers.dockerclient.DockerClientProviderStrategy.getClient(DockerClientProviderStrategy.java:96) at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:85) at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:43) at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:21) at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:20) at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:27) at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:687) ... 35 more Caused by: io.netty.channel.ChannelException: failed to open a new selector at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:127) at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:119) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:97) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:31) at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:77) ... 51 more Caused by: java.io.IOException: Too many open files at sun.nio.ch.IOUtil.makePipe(Native Method) at sun.nio.ch.KQueueSelectorImpl.<init>(KQueueSelectorImpl.java:84) at sun.nio.ch.KQueueSelectorProvider.openSelector(KQueueSelectorProvider.java:42) at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:125) ... 55 more

    Users with the same issue

    rprp
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    1 more bugmates