Testcontainer inside Openshift - Docker Non-root #11355
Unanswered
quentingosset
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am facing a problem that is bothering me quite a bit, and I am not keen on the alternative of using an external database.
My problem is as follows:
I have a CICD under GitLab via GitLab runners (https://docs.gitlab.com/runner/configuration/configuring_runner_operator/), all installed on OpenShift. As you can see, GitLab Runner Operator and GitLab Runner pod run as non-root users. So I'm facing a problem because when I try to launch testcontainer on my pipeline, I get the error “could not find a valid Docker environment.” This is normal because after running a few tests, I have absolutely no Docker created. Is there a way to work around this problem with a “non-root” mode of Docker in TestContainer? I found this docker:dind-rootless while trying to add it as a complement to TestContainer, but it doesn't seem to work.
Does anyone have any ideas?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions