Testcontainers can't pull ryuk image: quay.io is not reachable

Starting from version 1.14.3 testcontainers uses ryuk from Docker Hub instead of the quay.io. So raise your testcontainers version.


The workaround is to use different ryuk container from DockerHub (https://hub.docker.com/r/testcontainersofficial/ryuk or https://hub.docker.com/r/qminder/moby-ryuk) by setting property in testcontainers property file src/test/resources/testcontainers.properties:

ryuk.container.image=testcontainersofficial/ryuk

Another option is to disable Ryuk in Testcontainers by setting environment variable TESTCONTAINERS_RYUK_DISABLED to true as described here.


I got this error recently: upgrading testcontainers to version "1.15.1" fixed this issue.