Closed dpkass closed 4 days ago
You are saying that docker-compose sees a like like:
services.frontend.build.ulimits.nofile=65535
And supposedly tells the DockerAPI to set this setting, and it works with Docker but fails with Podman correct?
I‘m not sure what you mean exactly, but I believe so yes. Setting build ulimit is possible with normal docker-compose build
, if a docker daemon is handling the request.
Check the last item on this link. https://docs.docker.com/compose/compose-file/build/#ulimits
The Docker Docs were a bit ambiguous as well in that regard. From the wording it is unclear if the final running container has the ulimit or the build container.
I simply validated by setting different values and running RUN ulimit -Ha
while building the image, and it was always set to the build.ulimits value.
With Podman on the other hand it didn’t work, and it used the default value 1024 for nofile for example.
Mit freundlichen Grüßen
Taha El Amine Kassabi
From: Daniel J Walsh @.> Sent: Monday, August 5, 2024 6:50:21 PM To: containers/podman @.> Cc: dpkass @.>; Author @.> Subject: Re: [containers/podman] Podman default ulimits overwrites build ulimits of docker-compose (Issue #23497)
You are saying that docker-compose sees a like like:
services.frontend.build.ulimits.nofile=65535
And supposedly tells the DockerAPI to set this setting, and it works with Docker but fails with Podman correct?
— Reply to this email directly, view it on GitHubhttps://github.com/containers/podman/issues/23497#issuecomment-2269498746, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWAXVZRTAXZMJRKFLLL24SLZP6UM3AVCNFSM6AAAAABL57C2IGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRZGQ4TQNZUGY. You are receiving this because you authored the thread.Message ID: @.***>
Any chance you can update to podman 5.* I believe ulimit handling of podman build has been fixed in newer versions.
Ah seems right. Sorry, I don't know much about the podman eco-system, so I didn't know I should check buildah.
I probably won't be able to upgrade to podman 5, as it is running on the company's many Jenkins servers. I'll ask tho.
A friendly reminder that this issue had no activity for 30 days.
Issue Description
On my Jenkins Server I am building a NextJS App. The default limit of 1024 doesn't suffice.
To counteract I specified the variable
services.frontend.build.ulimits.nofile=65535
in my docker-compose.yml. The build still only had a limit of 1024.The User hast a limit >1.000.000.
Steps to reproduce the issue
Steps to reproduce the issue
In my Jenkinsfile I installed docker-compose by hand:
The only workaround I found, is adding the following to the Jenkinsfile:
Describe the results you received
Jenkins Build output:
Describe the results you expected
The ulimit to be increased to 65535
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
I am not allowed to change the podman version, so I haven't tried on 5.x yet. Using the same setup on the docker engine on my Mac worked just fine.