Skip to content

Running Moby Tests as Unprivileged User #46387

Answered by thaJeztah
mysteriouspants asked this question in Q&A
Discussion options

You must be logged in to vote

We can use the existing "am I root?" check. I'm not sure if this is good, since I'm not sure how moby developers execute these tests themselves - do they do so as root? Turning off the tests for everyone is a no-go.

I expect most developers will run the test-suites docker-in-docker, in which case the tests run as root inside the container (which could be either "actual" root, or a "remapped" root (with user-namespaces enabled)). Some users may be running tests directly on "bare-metal" (not docker-in-docker), so for those, the skips may be relevant.

Given that the full test-suite takes a long time to run, I expect most people working on the code to only be running unit-tests, or (if inte…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mysteriouspants
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants