Closed middlesouthlake closed 6 months ago
The docker plugin is not tested with podman or with other container runtimes. As far as I know, it is only tested with docker.
Thanks Mark. Is there a plan to support podman?
Thanks Mark. Is there a plan to support podman?
I've not seen anyone offer any pull request that would add support for podman. You're encouraged to submit a pull request, since you are interested in the capability and it would benefit you.
sorry, just realized this is a bug for docker-pipeline plugin. closing it.
Jenkins and plugins versions report
REHL8, podman
```text Jenkins running in podman on REHL8, docker installed in Jenkins image ``` when try to use docker.image(), it will find the container id first. However, the current method getContainerIdIfContainerized() can not parse the container id because the /proc/1/moutninfo is different. Please refer to the following. # cat /proc/1/mountinfo | grep /hostname 1339 1333 0:48 /containers/overlay-containers/4c4d5c5475f78f2b8a98e2894adcc3152ac587ac3c406a5c4eb74cc3f129c03c/userdata/hostname /etc/hostname rw,nosuid,nodev,relatime - tmpfs tmpfs rw,seclabel,size=1609596k,mode=700,uid=1001,gid=1001What Operating System are you using (both controller, and any agents involved in the problem)?
REHL8
Reproduction steps
Expected Results
the current code uses regexp "/containers/([a-z0-9]{64})/hostname" to parse the container id, so it expects /containers/[id]/hostname.
Actual Results
1339 1333 0:48 /containers/overlay-containers/4c4d5c5475f78f2b8a98e2894adcc3152ac587ac3c406a5c4eb74cc3f129c03c/userdata/hostname /etc/hostname rw,nosuid,nodev,relatime - tmpfs tmpfs rw,seclabel,size=1609596k,mode=700,uid=1001,gid=1001
Anything else?
No response
Are you interested in contributing a fix?
No response