Home > database >  Disable RYUK (Testcontainers for Go)
Disable RYUK (Testcontainers for Go)

Time:12-16

I'm using bitbucket pipelines to run my Go project tests that use Testcontainers. Pipelines fail with message:

Error response from daemon: authorization denied by plugin pipelines: --mounts is not allowed: creating reaper failed: failed to create container

So I set export TESTCONTAINERS_RYUK_DISABLED=true that I found from Testcontainers Java docs. It doesn't seem to do anything.

Using go 1.19.2 and github.com/testcontainers/testcontainers-go v0.15.0

CodePudding user response:

Right after this I went to investigate testcontainers-go source code and found that that all I had to do was to define in my ContainerRequest

SkipReaper:   true,
  • Related