/containers/create?name={name} cannot create container with Ulimits #22151
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
As previously filed in issue #9803 (Finding 4), which was prematurely closed after only Finding 1 (Volumes can not be created without a name) was resolved.
This impacts other downstream issues, such as containrrr/watchtower#1060.
This issue impacts the version of Podman that currently ships with the latest LTS release of Ubuntu (22.04): if this is fixed in a newer release, it would be useful for that fix to be backported (currently, the simplest fix for our use case was to abandon Podman altogether).
Steps to reproduce the issue
The API endpoint
/containers/create?name=
offers a wide range of settings for the new container. In theHostConfig
there is the subitemUlimits
which is a list of limits. If this subitem is present, the construction of the new container stops.payload.json
Describe the results you received
With
Ulimits
in theHostConfig
:If one deletes the
Ulimits
block from the payload the/create
call returns:Describe the results you expected
A test of the Docker API with
Ulimits
in theHostConfig
shows that the Docker API can create a new container withUlimits
.podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: