Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable RYUK (Testcontainers for Go)

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

like image 658
bluewhite132415 Avatar asked Sep 07 '25 21:09

bluewhite132415


1 Answers

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,
like image 192
bluewhite132415 Avatar answered Sep 10 '25 10:09

bluewhite132415