testcontainers-dotnet: Bitbucket pipelines throws an error - authorization denied by plugin pipelines: --mounts is not allowed

Hi,

Getting this in bitbucket pipelines:

Docker.DotNet.DockerApiException : Docker API responded with status code=Forbidden, response={“message”:“authorization denied by plugin pipelines: --mounts is not allowed”}

I have tried your suggestion with WithDockerEndpoint() in a related issue, but it doesn’t fix this.

The java testcontainers package seems to have addressed this by providing TESTCONTAINERS_RYUK_DISABLED:

https://github.com/testcontainers/testcontainers-java/issues/700

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (2 by maintainers)

Most upvoted comments

If your Docker host can’t access the domain socket (or IPC socket) /var/run/docker.sock, disable the Resource Reaper (TestcontainersSettings.ResourceReaperEnabled = false) before building any container configuration.

WithDockerEndpoint isn’t necessary anymore. The latest version will read the env variable automatic.