-
Notifications
You must be signed in to change notification settings - Fork 358
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
Doesn't work if docker requries sudo #185
Comments
Hey @thejpster, I think this is a docs problem. Since If you have any other tricks in mind, let me know! |
Maybe check an env var and call "sudo docker" instead of "docker"? CROSS_USE_SUDO perhaps? |
@thejpster what do we do about the user then having to input the sudo password on each docker invocation? |
Yeah, that starts to become a mess. Fabric, for example, reads the password once and passes it to every sudo invocation on stdin. |
related: #298 tldr: podman support would be great. |
Resolved. Adds yourself to the docker group to execute docker command without root privilege. |
@janvier-ninja that's not a solution, as the docker group is high privileged. |
I'm not willing to make docker accessible without password because of the security risk, so I worked around this with this command |
We support other container engines now (notably, Podman, which doesn't run as root) and rootless Docker, so this in no longer an issue. This is a design choice of Docker, not an issue in cross itself. |
The recommended Docker installation on CentOS 7 requires you to execute
docker
withsudo docker
. This, I think, means that cross doesn't work.The text was updated successfully, but these errors were encountered: