-
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
Docker compatibility: Created timestamp returned by image list is in wrong format #6796
Comments
@baude PTAL |
https://docs.docker.com/engine/api/v1.40/#operation/ImageInspect suggests that our current format is correct. I will keep digging to see if the documentation is in error. |
Also just checked on ubuntu docker.
|
For inspect endpoint that is correct behavior, but for list of images created timestamp should be formatted as unix time (integer). (This doesn't make any sense from API user perspective) https://docs.docker.com/engine/api/v1.40/#operation/ImageList |
@skorhone my apologies. you are correct as i misread the report. this is why i shouldnt work on the weekends. confirmed as bug. |
The PR was merged, should this issue be closed? |
I think we can close it. |
It looks like the issue isn't fixed:
Note the
Podman was installed from http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ on Ubuntu 20.04
|
@max-arnold |
Thanks for the clarification! I'll try to build Podman from source, since packages are often lagging behind the releases... |
@zhangguanzhang could you cherry pick this into the v2.0 release, then we know it will get into 2.0.5. @mheon WIll be releasing 2.1 fairly soon, but getting this into the stable branch will have it show up RHEL8 and Centos 8. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Podman's /images/json endpoint returns created timestamp as a string. Docker returns created timestamp in unix time. Different format causes popular tools such as testcontainers to fail.
Steps to reproduce the issue:
podman system service --log-level=debug --time=0 unix:///tmp/podman.sock
curl --unix-socket /tmp/podman.sock "http://localhost/images/json" -v
Describe the results you received:
"Created":"2020-06-23T11:06:02.096204727Z"
Describe the results you expected:
"Created": 1592924762000
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:The text was updated successfully, but these errors were encountered: