-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Behavior of podman run --cidfile foo.cid
is not compatible with docker run --cidfile foo.cid
#23106
Comments
@Luap99 We don't need the cidfile after execution, but we assumed it was there and we were trying to delete the cidfile without checking to see if it still existed; oops! Can this be documented as a difference in behavior from Docker? Thanks! |
Where would you want this to be documented? In general I prefer the way to not delete the file. Mainly because I am aware of at least two bugs due to the deletion logic: So not deleting the file would be much simpler for podman overall I am just not sure we can do such a change without breaking other users. Maybe something better left until a podman 6.0. |
I would expect a top-level page at named "Difference from the Docker CLI" or similar at https://docs.podman.io/en/latest/index.html ; and that this was hyperlinked to from the sentence "Support for a Docker-compatible CLI interface," in https://github.com/containers/podman?tab=readme-ov-file#overview-and-scope and Bonus, each difference would also be listed on the respective manual page, for example: https://docs.podman.io/en/latest/markdown/podman-run.1.html Thanks! |
Seems like something that could be handled in https://github.com/containers/podman/blob/main/transfer.md at least. |
A friendly reminder that this issue had no activity for 30 days. |
Issue Description
The official document says:
Therefore, we expect that Podman with an option behaves as same as Docker with the same option if possible.
In the case of Docker, the
run
subcommand with--cidfile
option generates a file with CID and leaves it as is when the container instance terminated.I confirmed that Podman 4.3.1 and earlier behaves as same as Docker, that is, the
run
subcommand with--cidfile
generates a file and leave it as is when the instance terminated.On the other hand, Padman 4.4.1 and later behaves differently. That is, the
run
subcommand with--cidfile
generates a file but removed when the instance terminated.This behavior change breaks existing tools such as
cwltool
, that is an executor of scientific workflows written in the Common Workflow Language.In the case of
cwltool
, it executes containerized scientific tools with Podman and reports the detailed information such as CIDs after finishing the execution. Since Podman 4.4.1, cwltool fails to collect the CIDs and thus fails to execute a given workflow.Is this behavior change a bug (i.e., unintended) or is it intended behavior change?
If intended, it is helpful if there is a list of such inconsistent behaviors with Docker.
Also it would be nice if the changelog mentions such breaking changes.
Steps to reproduce the issue
Execute the following commands:
Describe the results you received
Since Podman v4.4.1, I received the following:
That is,
foo.cid
is removed after finishing the execution.It is inconsistent behavior with Docker.
Describe the results you expected
Here is a message I expected and I got from Podman v4.3.1 and earlier:
That is,
foo.cid
remains after finishing execution.This behavior is compatible with Docker.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
I confirmed it happens with the following environments:
podman info
is shown above)quay.io/podman/stable
) with the following tags:v4.4.1
,v4.4.4
,v4.6.2
,v4.9.3
,v4.9.4
andv5.1.1
on Podman 3.4.4 on Ubuntu 22.04 (installed from the universe repository)I confirmed it does not happen (i.e., compatible behavior with Docker) with the following environments:
quay.io/podman/stable
) with the following tags:v3.4.7
,v4.2.1
, andv4.3.1
on Podman 3.4.4 on Ubuntu 22.04Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: