hack: support $DOCKER_ROOTLESS for testing rootless#40538
hack: support $DOCKER_ROOTLESS for testing rootless#40538cpuguy83 merged 1 commit intomoby:masterfrom
Conversation
1ceb386 to
91c9ba2
Compare
91c9ba2 to
2b44f63
Compare
6199179 to
a40de08
Compare
|
Thanks! Left some comments, but take note that GitHub is hiding some of them 😞 |
b861e14 to
ceeb496
Compare
Dockerfile
Outdated
There was a problem hiding this comment.
This is the only one I was a bit on the fence on; considering if it would be better if we make this a -v /home/unprivilegeduser/.local/share/docker at runtime instead
There was a problem hiding this comment.
Do we do that for VOLUME /var/lib/docker as well?
There was a problem hiding this comment.
No, I don't think we do; I think the main reason for that being there was that otherwise the container would be (largely) non-functional (unless vfs is used). Downside of these VOLUME declarations is that now at least two anonymous volumes are created each time.
Not a big deal.
ceeb496 to
f4afa5e
Compare
Dockerfile
Outdated
There was a problem hiding this comment.
No, I don't think we do; I think the main reason for that being there was that otherwise the container would be (largely) non-functional (unless vfs is used). Downside of these VOLUME declarations is that now at least two anonymous volumes are created each time.
Not a big deal.
|
Failure in s390x seems unrelated |
f4afa5e to
9d3ebb6
Compare
``` $ DOCKER_EXPERIMENTAL=1 DOCKER_ROOTLESS=1 TEST_SKIP_INTEGRATION_CLI=1 \ make test-integration ``` test-integration-cli is unsupported currently. Also, tests that spawn custom daemon (testutil/daemon) are skipped. Signed-off-by: Akihiro Suda <[email protected]>
9d3ebb6 to
5bf33ad
Compare
|
Can we ignore s390 error and merge this? |
- What I did
Added rootless test suite.
test-integration-cliis unsupported currently.Also, tests that spawn custom daemon (
testutil/daemon) are skipped.Relates to #40484
- How I did it
Spawn
dockerd-rootless.sh instead ofdockerdwhen$DOCKER_ROOTLESS` is set.- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
🐧