Skip to content

Comments

inttests/build: make it work with docker#47

Open
chmeliik wants to merge 1 commit intokonflux-ci:mainfrom
chmeliik:build-tests-docker
Open

inttests/build: make it work with docker#47
chmeliik wants to merge 1 commit intokonflux-ci:mainfrom
chmeliik:build-tests-docker

Conversation

@chmeliik
Copy link
Contributor

When running the tests with docker, they fail with

unshare(CLONE_NEWUSER): Operation not permitted

Setting --privileged fixes that. This is not a great solution, because we don't want to require privileged containers to run kbc image build. But it's the only one we've found so far. Limit --privileged only to docker and only to the 'image build' tests so that we still test with unprivileged containers most of the time.

When running the tests with docker, they fail with

    unshare(CLONE_NEWUSER): Operation not permitted

Setting --privileged fixes that. This is not a great solution, because
we don't want to require privileged containers to run kbc image build.
But it's the only one we've found so far. Limit --privileged only to
docker and only to the 'image build' tests so that we still test with
unprivileged containers most of the time.

Signed-off-by: Adam Cmiel <acmiel@redhat.com>
@chmeliik chmeliik requested a review from a team as a code owner January 30, 2026 11:40
@snyk-io
Copy link

snyk-io bot commented Jan 30, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@chmeliik
Copy link
Contributor Author

@mmorhun PTAL if this fixes the tests for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant