-
Notifications
You must be signed in to change notification settings - Fork 9
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
Jenkins is unable to execute podman #1
Comments
the binaries copied over fro the other image are musl built. Will they work against gcc ;
|
@gonrial Regarding the wrong home directory: This happens because the configuration changed meanwhile within the podman image and the Dockerfile refers to the @longwuyuan the podman binaries are statically linked which is why they also run with other linux distributions - I wonder why it prints "cannot load podman" in your case.... I ll have a look. |
thanks. the goal was to run unprivileged hence the choice of podman instead of dind. would you know if podman can be run without the jnlp image being privileged |
@longwuyuan First of all you need to distinguish between running a container as unprivileged (non-root) user (known as "rootless container") and running it with extended privileges/capabilities. While you cannot run docker as unprivileged user you can do so using podman - that's a big advantage already. However even if you run podman as unprivileged user it still requires some additional capabilities (at least So you can run the jenkins agent container as unprivileged user with podman but you need to be aware that it would be possible for a process within the jenkins container to break out. (if you wanted to be really sure that this cannot affect other processes/data on the same host you'd need to run the jenkins container with a uid/gid that is unique on that host.) Also see e.g. containers/podman#4131 Oh and I realize the "cannot load podman" error originated from ldd because you didn't provide the correct podman binary path - so nothing to worry in that matter. |
I read through the issue and know better now. I was attempting to use this image https://github.com/longwuyuan/jenkins-jnlp-agent-podman, to build this app https://github.com/longwuyuan/docker-python-helloworld , with jenkins installed using the stable helm chart (and hence shipping the kubernetes plugin out of the box) and the agent launching as a pod due to this pipeline https://github.com/longwuyuan/docker-python-helloworld/blob/master/Jenkinsfile .. Fails with issues you are referring to |
I have been advised to use buildah containers/podman#8190 |
I am closing this issue because meanwhile I fixed the podman image so that it is home dir agnostic again. @longwuyuan while buildah is fine if you just want to build a container image it is not sufficient if you want to have a full docker CLI replacement. |
Using this pipeline:
I get the following output
I checked and in
/etc/containers/storage.conf
thegraphroot
points to/podman/.local/share/containers/storage
instead of$HOME/.local/share/containers/storage
but even after changing that, podman is still throwing errors:I also tested locally using:
Any ideas what can be happening?
The text was updated successfully, but these errors were encountered: