-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Podman API incompatibility findings for Docker API v1.40 #9803
Comments
I was about to open a new issue regarding how the Podman API is incompatible with docker when applying filtering to list containers. The motivation behind this is I'm trying to use podman with k3d as mentioned here. This is kind of related to #7462 Should i open a new issue or I provide my findings under this issue? @mheon @JBartscher |
@jamesdube please create a new issue |
Concur, new issue would be better. |
A friendly reminder that this issue had no activity for 30 days. |
The Docker API does not require Volume name to be specified when creating a volume. Fixes: containers#9803 Signed-off-by: Daniel J Walsh <[email protected]>
I see this issue as closed while it raised several points, only one of them appearing to be closed. "Finding 4 - /containers/create?name={name} cannot create container with Ulimits in PayLoad" |
please open up a new issue to get this tracked ... consider contributing a fix if you are able. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Podman API incompabilities with Docker API
Podman provides an API which aims to be compatible to the v1.40 Docker API. We found some incompatibles and wanted to share them with you.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
We ran these tests because we want to use podman together with portainer and encountered some minor problems. The problems that we think can be solved on the side of podman we have prepared below.
Podman API incompabilities with Docker API
Podman provides an API which aims to be compatible to the v1.40 Docker API. We found some incompatibles and wanted to share them with you.
Finding 1 - Volumes can not be created without a name
Description
We want to create a volume via Podman API call without an expicit usage of the
name
field.Expected Behavior
tested with docker api v1.40
which returns:
Actual Behavior
Finding 2 - /containers/{id}/top cannot fetch processes of container
Description
For a rootless container it is not possible to fetch information about that container via the
/top
endpoint.Expected Behavior
tested with docker api v1.40
which returns:
Actual Behavior (rootless)
Finding 3 - /containers/{id}/start cannot start container
Description
For a rootless container it is not possible to start a container via the
/start
endpoint.Expected Behavior
tested with docker api v1.40
which returns:
Actual Behavior
curl --unix-socket /run/user/1000/podman/podman.sock -H "Content-Type: application/json" -X POST http://d/v1.0.0/containers/0a7d70199b16/start -v
which returns:
Finding 4 - /containers/create?name={name} cannot create container with
Ulimits
in PayLoadDescription
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
Expected Behavior
A test of the Docker API with
Ulimits
in theHostConfig
shows that the Docker API can create a new container withUlimits
.Actual Behavior
With
Ulimits
in theHostConfig
:If one deletes the
Ulimits
block from the payload the/create
call returns:The text was updated successfully, but these errors were encountered: