Skip to content
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 images --format incompatibility with docker #5110

Closed
bruceg opened this issue Feb 6, 2020 · 4 comments · Fixed by #5115
Closed

podman images --format incompatibility with docker #5110

bruceg opened this issue Feb 6, 2020 · 4 comments · Fixed by #5115
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. 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.

Comments

@bruceg
Copy link

bruceg commented Feb 6, 2020

/kind bug

Description

The tags available in the podman images --format option is incompatible with docker. In particular, docker has both {{.CreatedAt}} and {{.CreatedSince}} while podman has neither but has {{.Created}} instead.

Steps to reproduce the issue:

  1. docker images --format '{{.CreatedAt}}'

  2. podman images --format '{{.CreatedAt}}'

Output of podman version:

Version:            1.7.0
RemoteAPI Version:  1
Go Version:         go1.12.13
Git Commit:         b7ce1157b00af09f4a09e39b377aa3abff46ee05
Built:              Sun Jan 19 14:08:07 2020
OS/Arch:            linux/amd64

Output of podman info --debug:

debug:
  compiler: gc
  git commit: b7ce1157b00af09f4a09e39b377aa3abff46ee05
  go version: go1.12.13
  podman version: 1.7.0
host:
  BuildahVersion: 1.12.0
  CgroupVersion: v1
  Conmon:
    package: Unknown
    path: /usr/libexec/podman/conmon
    version: 'conmon version 2.0.10, commit: 7a830be343876ac381c965c7429a7fb9b3d7a609'
  Distribution:
    distribution: gentoo
    version: unknown
  IDMappings:
    gidmap:
    - container_id: 0
      host_id: 500
      size: 1
    - container_id: 1
      host_id: 1000000
      size: 100000
    uidmap:
    - container_id: 0
      host_id: 500
      size: 1
    - container_id: 1
      host_id: 1000000
      size: 100000
  MemFree: 2903642112
  MemTotal: 33604526080
  OCIRuntime:
    name: runc
    package: Unknown
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc9
      spec: 1.0.1-dev
  SwapFree: 2019291136
  SwapTotal: 2147479552
  arch: amd64
  cpus: 12
  eventlogger: journald
  hostname: lorien
  kernel: 5.4.15
  os: linux
  rootless: true
  slirp4netns:
    Executable: /usr/bin/slirp4netns
    Package: Unknown
    Version: |-
      slirp4netns version 0.4.2
      commit: 69153b0d1cb82216d6782179ff7c3c5e91c731a1
  uptime: 214h 10m 6.52s (Approximately 8.92 days)
registries:
  search:
  - docker.io
  - quay.io
store:
  ConfigFile: /home/bruce/.config/containers/storage.conf
  ContainerStore:
    number: 5
  GraphDriverName: btrfs
  GraphOptions: {}
  GraphRoot: /scratch/containers/storage
  GraphStatus:
    Build Version: 'Btrfs v5.4.1 '
    Library Version: "102"
  ImageStore:
    number: 27
  RunRoot: /tmp/500
  VolumePath: /scratch/containers/storage/volumes

Package info (e.g. output of rpm -q podman or apt list podman):

app-emulation/libpod-1.7.0::gentoo  USE="btrfs rootless -apparmor (-selinux) (-ostree%)"
@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 6, 2020
@rhatdan
Copy link
Member

rhatdan commented Feb 6, 2020

@QiWang19 PTAL, I wonder if an alias exists for this type of thing.

@rhatdan rhatdan added the Good First Issue This issue would be a good issue for a first time contributor to undertake. label Feb 6, 2020
@rhatdan
Copy link
Member

rhatdan commented Feb 6, 2020

@bruceg If you were interested in opening a PR to fix this, it would be welcomed...

@tartina
Copy link
Contributor

tartina commented Apr 26, 2022

This issue is present again in latest version of podman, but not in latest buildah.

@rhatdan
Copy link
Member

rhatdan commented Apr 26, 2022

Works for me.

$ podman images --format '{{.CreatedAt}}'
2022-04-24 10:52:55 +0000 UTC
2022-04-20 22:29:23 +0000 UTC
2022-02-21 06:48:24 +0000 UTC
2021-06-10 18:55:43 +0000 UTC
$ podman images --format '{{.CreatedSince}}'
2 days ago
5 days ago
2 months ago
10 months ago
$ podman version
Client: Podman Engine
Version: 4.0.3
API Version: 4.0.3
Go Version: go1.18
Built: Fri Apr 1 14:21:54 2022
OS/Arch: linux/amd64

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. 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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants