-
Notifications
You must be signed in to change notification settings - Fork 313
TODO: add a dev note regarding sudoless docker #749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@alexanderankin @totallyzen please tell me how you think is best to proceed and I'll open a PR accordingly. |
what did you do that didnt work? for example, i just pulled latest main, ran tests with |
Checkout the comments on https://github.com/testcontainers/testcontainers-python/pull/714/files#r1885389659 |
I assume you prefer not to add this comment so I'll start working on replacing the relevant code. |
ah okay so "sudoless" refers not to rootless docker or anything but rather it refers to the permissions on the docker socket. I consider it invalid docker installation if you do not also do
after installing. I wonder what the difference is between using |
Note that its not the user that affect the behavior but the complimentary requirement |
fix: #749 Replace using `subprocess.run` in the **dind** test with SDK to avoid the direct call to docker that enforces the developer to run _sudoless_ docker.
Devs should be informed (using the official docs) that the testing environment considers
sudoless docker
as a baseline (and some things might not work / break if sudo is required)For a future plan, we should rewrite / avoid using docker command directly (for example using
subprocess.run
) and use the docker SDK.The text was updated successfully, but these errors were encountered: