Disable RYUK (Go test container)

WBOY
Release: 2024-02-08 22:42:18
forward
522 people have browsed it

禁用 RYUK(Go 测试容器)

php editor Banana is here to introduce an important security measure - disabling RYUK (Go test container). RYUK is a common tool that exploits container environments to carry out attacks. It can cause potential threats to the host system by modifying files within the container. In order to ensure the security of the container environment, disabling RYUK is a necessary measure. In this article, we'll detail how to disable RYUK and provide some related security recommendations to help you protect your container environment from potential attacks.

Question content

I am using bitbucket pipeline to run my go project tests using testcontainers. Pipeline fails with message:

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

So I set export testcontainers_ryuk_disabled=true found from the testcontainers java documentation. Doesn't seem to do anything.

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

Workaround

After this I went to investigate the testcontainers-go source code and found that all I had to do was define in my containerrequest

SkipReaper:   true,
Copy after login

The above is the detailed content of Disable RYUK (Go test container). For more information, please follow other related articles on the PHP Chinese website!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!