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 {info,version} --format '{{json .}}' regression since podmanv2 commands landed #7056

Closed
maybe-sybr opened this issue Jul 23, 2020 · 8 comments
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.

Comments

@maybe-sybr
Copy link
Contributor

maybe-sybr commented Jul 23, 2020

/kind bug

Description
Back in #2688 and #4408, special handling for the docker-ish json formatter function was added to the info and version command handlers. These workarounds disappeared when the podmanV2 commands were promoted in 241326a, and we now get an error message.

Steps to reproduce the issue:

  1. Run podman info -f '{{json .}}' and/or podman version -f '{{json .}}'

Describe the results you received:

$ podman version -f '{{json .}}'
Error: template parsing error: template: image:1: function "json" not defined

Describe the results you expected:
The formatter should render JSON as if I had passed --format json

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

Version:      2.0.2
API Version:  1
Go Version:   go1.14.3
Built:        Thu Jan  1 10:00:00 1970
OS/Arch:      linux/amd64

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

podman-2.0.2-1.fc32.x86_64

Additional environment details (AWS, VirtualBox, physical, etc.):

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 23, 2020
@maybe-sybr
Copy link
Contributor Author

maybe-sybr commented Jul 23, 2020

docker inspect <whatever> -f '{{json .}}' seems to work fine. My best guess is that because inspect returns JSON by default, the template handler either knows about (and NOPs?) the json function. Whereas the YAML formatted info and version commands don't know about the json template function.

@rhatdan
Copy link
Member

rhatdan commented Jul 23, 2020

These seem to be fixed in the master branch.

@rhatdan rhatdan closed this as completed Jul 23, 2020
@maxamillion
Copy link

This appears to still be broken in version 2.0.4

$ podman images quay.io/ansible/default-test-container:1.11 --format '{{json .}}'
Error: template: list:1: function "json" not defined
$ podman --version
podman version 2.0.4

@zhangguanzhang
Copy link
Collaborator

This appears to still be broken in version 2.0.4

$ podman images quay.io/ansible/default-test-container:1.11 --format '{{json .}}'
Error: template: list:1: function "json" not defined
$ podman --version
podman version 2.0.4

podman inspect quay.io/ansible/default-test-container:1.11 --format '{{json .}}'

@maxamillion
Copy link

$ podman inspect quay.io/ansible/default-test-container:1.11 --format '{{json .}}'
{"Id":"adc66f32a7b88c840a7909dc62b9a8e88503df39b42891b233d8198750831320","Digest":"sha256:94f7f85c4f7730c8054e327b3b7aa641a8983812b601b04e4d851acf98c2ddfa","RepoTags":["quay.io/ansible/default-test-container:1.11"],"RepoDigests":["quay.io/ansible/default-test-container@sha256:94f7f85c4f7730c8054e327b3b7aa641a8983812b601b04e4d851acf98c2ddfa"],"Parent":"","Comment":"","Created":"2020-03-01T02:31:46.261574581Z","Config":{"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","container=docker"],"Cmd":["/sbin/init"],"Volumes":{"/run":{},"/run/lock":{},"/sys/fs/cgroup":{},"/tmp":{}}},"Version":"18.02.0-ce","Author":"","Architecture":"amd64","Os":"linux","Size":5057635487,"VirtualSize":5057635487,"GraphDriver":{"Name":"overlay","Data":{"LowerDir":"/home/admiller/.local/share/containers/storage/overlay/4f2d376334978bee668eb76e940696ad3adb2c25ea4a82b9a8dc0e2a03f846de/diff:/home/admiller/.local/share/containers/storage/overlay/7e88b7ef16adb43ae3aa519aaa3fa8e99a95314b9e3a4fc9b3a937f541aedff3/diff:/home/admiller/.local/share/containers/storage/overlay/373bc770f8f6c3dcea3da4a98b39242995552b5ff4b0123773aac324c3463c4d/diff:/home/admiller/.local/share/containers/storage/overlay/ee70fc8b0348986978ab620245b9f60a0b28cb93e9fc19266346818c5a0d02ec/diff:/home/admiller/.local/share/containers/storage/overlay/84b94462d9965c711c85c9d07a7b1c29b14e1f932de41ee5e2d750b0a631c5dd/diff:/home/admiller/.local/share/containers/storage/overlay/f920bcbdd6a83e527dd2c873d8264e4db9dcd8493ff9bdc742cff1c7e2ce9bfa/diff:/home/admiller/.local/share/containers/storage/overlay/3d90366383919a533a4d9691068e61d9af2930932303e969bccd34f70f1a6a60/diff:/home/admiller/.local/share/containers/storage/overlay/ac6bc0deaf8901ced705db5fd49ac701dd78fad58bbd39451b28f49435ed9059/diff:/home/admiller/.local/share/containers/storage/overlay/f52f652cc8949f38f45a87c7522a4b888c81796075f6404f90d4f7a059617232/diff:/home/admiller/.local/share/containers/storage/overlay/9f616a3929f892c0ecc4e1849154ae0e3eb6aab82e274453c00a8155222f7ff1/diff:/home/admiller/.local/share/containers/storage/overlay/c50445e6e93c381adc45cd90fd6d31adfe55e9be312bcd559a36cc24f55d0134/diff:/home/admiller/.local/share/containers/storage/overlay/294bbf20e20aeec3c1694bf9b93b27e48804da6da8ab052f3d037bd253553b97/diff:/home/admiller/.local/share/containers/storage/overlay/65b9e4f5e0208ebb816fdf71c13acf7db47e85a2445804f5c1589e3a00a8aa60/diff:/home/admiller/.local/share/containers/storage/overlay/62ed1d1fa3361aa7c282fbb29598f9710e155e7b1c06fac51b58af403e7febd8/diff:/home/admiller/.local/share/containers/storage/overlay/c8a4a93b6413cd30d5e28374b599d76a0727098be9e6da4b16138b82b4b375eb/diff:/home/admiller/.local/share/containers/storage/overlay/a362022ac02177c7a1fe68479dc24b2f36778cfca3ee3fc29f1f4b26693715f9/diff:/home/admiller/.local/share/containers/storage/overlay/a3a668a8a6b663d53879fe9085dc8985ac199a87186ce18cfb7fd699f85b3a1e/diff:/home/admiller/.local/share/containers/storage/overlay/ac96e351f2b03b091d89e750ba786ae466a46476bf4dc96f6b085040c5b5f6f3/diff:/home/admiller/.local/share/containers/storage/overlay/558aff8f825a4d7d4367b083a7eee46496738f4e1bd885c21acd4fc182827d72/diff:/home/admiller/.local/share/containers/storage/overlay/dd4199ccc7a7f14eea3ff9087a26a70a819c1a609c5c048b4e8caa35236d9a67/diff:/home/admiller/.local/share/containers/storage/overlay/87a9fa4ab60ea1a15dfca271cf51531f9a3764f4b4e9954dc0c90560fcde30fc/diff:/home/admiller/.local/share/containers/storage/overlay/dfce468b37df797c5a7842ddd80a480bed26d9b9e93d69b649ba1e3e7f388f57/diff:/home/admiller/.local/share/containers/storage/overlay/674c7f485e92d0835fff5e7cf6ec2b5d0db2ac941f0a30a689dd90c77a93322b/diff:/home/admiller/.local/share/containers/storage/overlay/ce7c72ea2d7245e86e792718e9eeb4df9a5a281c3824905e72246ae87415e99c/diff:/home/admiller/.local/share/containers/storage/overlay/f30e631c3dc9cde430906a3fbe9c8ccc8523e9d5bbd3eb0f698427932ea0db42/diff:/home/admiller/.local/share/containers/storage/overlay/5cebc5cb4f73c35a84f955112ab2bb414d32162dcc6ee23b23de5939bbe0b2ae/diff:/home/admiller/.local/share/containers/storage/overlay/da6ea2f3e6d2e463d0deaa179aadeebd6bfcad092ae11e6664ce2131c5afe1e8/diff:/home/admiller/.local/share/containers/storage/overlay/1df441aef4eeb334e3ebcfca6c6561b7e9d7c3dee87520167528a94274ac8999/diff:/home/admiller/.local/share/containers/storage/overlay/831bbd5ce2b3579207b43f28c0db71224f48c506e712b03831bf2224f42895bf/diff:/home/admiller/.local/share/containers/storage/overlay/f2e520692ac8ed4e96dcd1f6baf73627c7edc810b1092bcb5abb4bbdb1b63ad3/diff:/home/admiller/.local/share/containers/storage/overlay/6f931ae92b7636e416754ceb8f03625de5ec2c929d455b1c8077da12509d8384/diff:/home/admiller/.local/share/containers/storage/overlay/548715808aee3a4c4cab55dd2d15d3fadd0eefbad6ee0a1aab3f641406d16b77/diff:/home/admiller/.local/share/containers/storage/overlay/11ab4dfe89b42ee5f2b23e77774b37d8652e11744107e3ffc2f1be16f7390d06/diff:/home/admiller/.local/share/containers/storage/overlay/cc4590d6a7187ce8879dd8ea931ffaa18bc52a1c1df702c9d538b2f0c927709d/diff","UpperDir":"/home/admiller/.local/share/containers/storage/overlay/2e549c1a9318e8fcc57700c7a84e4e41b8d3a03d8ff681018d29324d586c3412/diff","WorkDir":"/home/admiller/.local/share/containers/storage/overlay/2e549c1a9318e8fcc57700c7a84e4e41b8d3a03d8ff681018d29324d586c3412/work"}},"RootFS":{"Type":"layers","Layers":["sha256:cc4590d6a7187ce8879dd8ea931ffaa18bc52a1c1df702c9d538b2f0c927709d","sha256:8c98131d2d1d1c8339d268265005394de6cafe887020dcca9ba9d9d07a56280c","sha256:03c9b9f537a4ae66d7ae7a4361e7f36e6755380107eadff3fbc11cd604c6c9b9","sha256:1852b2300972ff9f68fd3d34f1f112df3e35757d91dcd40cc8b379bbf2be62d5","sha256:6b1bcbd607a0acd5ded591294b9b50b4c0d45e4df7be305c53332108bf6fcd2a","sha256:acb680cc5bb31915ee1eed9c3bb5fec75652200508474cd1114b21204e51f59b","sha256:4b9e8c23880a29c2297b274984c9c14b103aaaffa586ba76438c6316cfe452ef","sha256:edbe91f8462b932c46abaf467e712574843f873b8827148a3ecb9de5c2b1ef53","sha256:d85e78ded94db976a6b123c7ed788a1309e976fc60e16ba47f71fb19b282d32e","sha256:89670f0068650fa4a4a69cc2122862b086267e494252ded5c53a6214db642dde","sha256:c100de5f02756edb9ea02ad798cfe682c31da2a7781c2eb94ba96f7ef518e4c5","sha256:d664b7793f411fdb7240540c723afe66ee18b3b5dec16aa80a75cb567b982435","sha256:160bf549c62bed749d4d03d67373c0cc2859f5fcec9852cd1914c595917b43a2","sha256:c75c9cb3b06d30e6e64e395392b24850aba078ab752866a3117b495b726e41fd","sha256:5b30304591c0214ddcd5dc912aa45757c514affa3adc16c1ab848001fc3edbf5","sha256:741e5a96aecf639767a3b5ec9fa3ee65b69292a0672c76e2d9b923871377b3b7","sha256:4c681a70e7d45bf4a1a6b508bc7340db50445340350f0c3e5120184cc6321503","sha256:454b717517b969f630cf0aaf780a179ce4373bf2d2f43054b24f06436b41c793","sha256:14b331c28939ed60414ff33998b48db1ff178354798749be4db29d73e043bd64","sha256:16ac0c796d7a0323506fb7fab5bb27e35b15ce8628c28488fd3d988284662c63","sha256:23205db0377b077807dc3c4d0be8c5b389f21bf1a0602b62f0b30bf243cca0e0","sha256:c166ce1a832c86f9d8e3bea60ede5cb5dfe188af8fa9a9433bcc59d17a7a0f66","sha256:714ad57f0fa1d311eb6e9592a0027a21ccf4ab1733d26f6e3c2ec54092c5876c","sha256:2f6015aa19421314edaaaf5133b9f7f066282db3015dc6e50734900bcb350590","sha256:b3eabf98fd56f6a36dd2e8e1f0584aeabe74511d3f5a801972b4f7df9ca0ca1b","sha256:6c79660a6ac02a945db42a145e9ca1fa650730248ebc36436320337175ab2119","sha256:2c6470d32386f37c53f81e432a24574ecfd6958c92fd3639faf362306236afd2","sha256:62db2d0a5d70fa6473a2a1444f5b6f826d9fa81bfe73f74e26f93cf3b25a5cca","sha256:2a96dc73228e594c62c999bfde5cb23326d304564efb6755ef15d397101b613e","sha256:9c673d3a5ba34cc0f1bd635cd0b6ef3f64a90694f1bf9e972a256bf10130e1b0","sha256:2b5a28ab92cb67fa59635761cf7df87f73a8e247f6d1b857677a5fee0accf907","sha256:aedd693a06bdac25c0251116712eed1cb6221963fc7c4c822892fe42797d1c53","sha256:79a5e113e4154c7247e194674735075f7fbcbd33b1e004d09232e753b0a012d7","sha256:787dbd01c212d44528257a985af485d4cbba08ba48509a6d47da08985ffd0ac9","sha256:1f57da4bdb338798dcbdfa4ca91b7f5816b4ad6e8bea243be9843d9839682efa"]},"Labels":null,"Annotations":{},"ManifestType":"application/vnd.docker.distribution.manifest.v2+json","User":"","History":[{"created":"2020-02-21T22:20:39.949702462Z","created_by":"/bin/sh -c #(nop) ADD file:91a750fb184711fde03c9172f41e8a907ccbb1bfb904c2c3f4ef595fcddbc3a9 in / "},{"created":"2020-02-21T22:20:41.462180188Z","created_by":"/bin/sh -c [ -z \"$(apt-get indextargets)\" ]"},{"created":"2020-02-21T22:20:42.813141008Z","created_by":"/bin/sh -c set -xe \t\t&& echo '#!/bin/sh' > /usr/sbin/policy-rc.d \t&& echo 'exit 101' >> /usr/sbin/policy-rc.d \t&& chmod +x /usr/sbin/policy-rc.d \t\t&& dpkg-divert --local --rename --add /sbin/initctl \t&& cp -a /usr/sbin/policy-rc.d /sbin/initctl \t&& sed -i 's/^exit.*/exit 0/' /sbin/initctl \t\t&& echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup \t\t&& echo 'DPkg::Post-Invoke { \"rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true\"; };' > /etc/apt/apt.conf.d/docker-clean \t&& echo 'APT::Update::Post-Invoke { \"rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true\"; };' >> /etc/apt/apt.conf.d/docker-clean \t&& echo 'Dir::Cache::pkgcache \"\"; Dir::Cache::srcpkgcache \"\";' >> /etc/apt/apt.conf.d/docker-clean \t\t&& echo 'Acquire::Languages \"none\";' > /etc/apt/apt.conf.d/docker-no-languages \t\t&& echo 'Acquire::GzipIndexes \"true\"; Acquire::CompressionTypes::Order:: \"gz\";' > /etc/apt/apt.conf.d/docker-gzip-indexes \t\t&& echo 'Apt::AutoRemove::SuggestsImportant \"false\";' > /etc/apt/apt.conf.d/docker-autoremove-suggests"},{"created":"2020-02-21T22:20:44.104623432Z","created_by":"/bin/sh -c mkdir -p /run/systemd && echo 'docker' > /run/systemd/container"},{"created":"2020-02-21T22:20:44.446608273Z","created_by":"/bin/sh -c #(nop)  CMD [\"/bin/bash\"]","empty_layer":true},{"created":"2020-03-01T02:13:28.532156533Z","created_by":"/bin/sh -c apt-get update -y &&     DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends     ca-certificates     curl     g++     gcc     git     gnupg2     libbz2-dev     libffi-dev     libreadline-dev     libsqlite3-dev     libxml2-dev     libxslt1-dev     libyaml-dev     locales     make     openssh-client     openssh-server     openssl     python2.7-dev     python3.6-dev     python3.6-distutils     python3.6-venv     python3.7-dev     python3.7-distutils     python3.7-venv     python3.8-dev     python3.8-distutils     python3.8-venv     shellcheck     systemd-sysv     &&     apt-get clean"},{"created":"2020-03-01T02:13:30.326803927Z","created_by":"/bin/sh -c apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776"},{"created":"2020-03-01T02:13:30.461637259Z","created_by":"/bin/sh -c #(nop) COPY file:df3dd76c4657d326ae994e2c88ffd301ba9f0a6aa9c2a232f6987d0670fb88ae in /etc/apt/sources.list.d/deadsnakes.list "},{"created":"2020-03-01T02:14:12.090969859Z","created_by":"/bin/sh -c apt-get update -y &&     DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends     python2.6-dev     python3.5-dev     python3.5-venv     python3.9-dev     python3.9-distutils     python3.9-venv     &&     apt-get clean"},{"created":"2020-03-01T02:14:12.915336739Z","created_by":"/bin/sh -c ssh-keygen -m PEM -q -t rsa -N '' -f /root/.ssh/id_rsa &&     cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys &&     for key in /etc/ssh/ssh_host_*_key.pub; do echo \"localhost $(cat ${key})\" >> /root/.ssh/known_hosts; done"},{"created":"2020-03-01T02:14:13.545997832Z","created_by":"/bin/sh -c rm /etc/apt/apt.conf.d/docker-clean"},{"created":"2020-03-01T02:14:14.948816523Z","created_by":"/bin/sh -c locale-gen en_US.UTF-8"},{"created":"2020-03-01T02:14:15.188931935Z","created_by":"/bin/sh -c #(nop)  VOLUME [/sys/fs/cgroup /run/lock /run /tmp]","empty_layer":true},{"created":"2020-03-01T02:14:15.908878359Z","created_by":"/bin/sh -c ln -s python2.7 /usr/bin/python2"},{"created":"2020-03-01T02:14:16.587220222Z","created_by":"/bin/sh -c ln -s python3.6 /usr/bin/python3 -f"},{"created":"2020-03-01T02:14:17.287905926Z","created_by":"/bin/sh -c ln -s python3   /usr/bin/python"},{"created":"2020-03-01T02:14:20.831879018Z","created_by":"/bin/sh -c apt-get update -y &&     DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends     apt-transport-https     &&     apt-get clean"},{"created":"2020-03-01T02:14:21.001874027Z","created_by":"/bin/sh -c #(nop) ADD 44eaf4011be6b28d4bb64637e13cda1d36aabcd5e02c40f742cc0481aec73ce3 in /etc/apt/sources.list.d/microsoft.list "},{"created":"2020-03-01T02:14:22.002470718Z","created_by":"/bin/sh -c curl --silent https://packages.microsoft.com/keys/microsoft.asc | apt-key add -"},{"created":"2020-03-01T02:15:55.780081725Z","created_by":"/bin/sh -c apt-get update -y &&     DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends     dotnet-sdk-2.2     powershell     &&     find /usr/share/dotnet/sdk/NuGetFallbackFolder/ -name '*.xml' -type f -delete     &&     apt-get clean"},{"created":"2020-03-01T02:15:57.149132061Z","created_by":"/bin/sh -c dotnet --version"},{"created":"2020-03-01T02:15:57.924128869Z","created_by":"/bin/sh -c pwsh --version"},{"created":"2020-03-01T02:15:58.038207234Z","created_by":"/bin/sh -c #(nop) COPY file:9e3a5b58dd0312a71b430138ecc3f0bbc06c0c0c4a2c5fc3788dde377bfe9668 in /tmp/ "},{"created":"2020-03-01T02:16:18.0344715Z","created_by":"/bin/sh -c /tmp/sanity.ps1"},{"created":"2020-03-01T02:16:18.383956486Z","created_by":"/bin/sh -c #(nop)  ENV container=docker","empty_layer":true},{"created":"2020-03-01T02:16:18.627817552Z","created_by":"/bin/sh -c #(nop)  CMD [\"/sbin/init\"]","empty_layer":true},{"created":"2020-03-01T02:16:18.88538259Z","created_by":"/bin/sh -c #(nop) ADD 092225409dc72c62b5c91e6d7d9f9acec00489bb04518a4d158fc76a679aa734 in /tmp/get-pip.py "},{"created":"2020-03-01T02:16:19.03532739Z","created_by":"/bin/sh -c #(nop) ADD 58d71cc32ba0aadde378ec27ef2dcb735a939ed18ee79f734995c146319e6048 in /tmp/get-pip2.6.py "},{"created":"2020-03-01T02:16:19.151847331Z","created_by":"/bin/sh -c #(nop) COPY file:2c726a2c176a26e69337b5672fc6a68737eb7b48dcce0ab56c410bf252c34c4e in /tmp/ "},{"created":"2020-03-01T02:16:19.249724977Z","created_by":"/bin/sh -c #(nop) COPY file:dd3619856f3341956f071128495e2a0b1a7e10d06a3cfe88707ec4bacb4951d1 in /tmp/ "},{"created":"2020-03-01T02:16:19.8891993Z","created_by":"/bin/sh -c #(nop) COPY multi:bc9eee36bad34d6b29369221c9677ccb7bf82f3114e211c0dc99cba985c4afd8 in /tmp/requirements/ "},{"created":"2020-03-01T02:16:20.191319532Z","created_by":"/bin/sh -c #(nop) COPY multi:2b0dcdc6a6872cc6f6110db7bb61814c87bd83e3eecfb040d2953f93e90b7a87 in /tmp/freeze/ "},{"created":"2020-03-01T02:20:24.709105186Z","created_by":"/bin/sh -c /tmp/requirements.sh 2.6"},{"created":"2020-03-01T02:21:43.861955797Z","created_by":"/bin/sh -c /tmp/requirements.sh 2.7"},{"created":"2020-03-01T02:23:32.097788437Z","created_by":"/bin/sh -c /tmp/requirements.sh 3.5"},{"created":"2020-03-01T02:25:08.994448063Z","created_by":"/bin/sh -c /tmp/requirements.sh 3.7"},{"created":"2020-03-01T02:26:51.547119883Z","created_by":"/bin/sh -c /tmp/requirements.sh 3.8"},{"created":"2020-03-01T02:30:06.249901276Z","created_by":"/bin/sh -c /tmp/requirements.sh 3.9"},{"created":"2020-03-01T02:31:46.261574581Z","created_by":"/bin/sh -c /tmp/requirements.sh 3.6"}],"NamesHistory":[]}

@relrod
Copy link

relrod commented Oct 4, 2020

This appears to still be broken in version 2.0.4

and in 2.0.6 (as found in Fedora 31)

@rhatdan
Copy link
Member

rhatdan commented Oct 5, 2020

$ podman version -f '{{json .}}' | json_pp 
{
   "Client" : {
      "APIVersion" : "2.0.0",
      "Built" : 1601669773,
      "BuiltTime" : "Fri Oct  2 16:16:13 2020",
      "GitCommit" : "",
      "GoVersion" : "go1.15.1",
      "OsArch" : "linux/amd64",
      "Version" : "2.1.1"
   }
}

These work for me?

$ podman inspect -l -f '{{json .}}' 
{"Id":"83a3d0059a63f85aa0e17653fd5da959565290df4e192ec6e6ce7190c18049a6","Created":"2020-10-05T08:17:25.203464416-04:00","Path":"sleep","Args":["1000"],"State":{"OciVersion":"1.0.2-dev","Status":"exited","Running":false,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":0,"Error":"","StartedAt":"2020-10-05T08:17:25.350080574-04:00","FinishedAt":"2020-10-05T08:34:05.3624702-04:00","Healthcheck":{"Status":"","FailingStreak":0,"Log":null}},"Image":"00ff39a8bf19f810a7e641f7eb3ddc47635913a19c4996debd91fafb6b379069","ImageName":"registry.fedoraproject.org/fedora:latest","Rootfs":"","Pod":"","ResolvConfPath":"/run/user/3267/containers/overlay-containers/83a3d0059a63f85aa0e17653fd5da959565290df4e192ec6e6ce7190c18049a6/userdata/resolv.conf","HostnamePath":"/run/user/3267/containers/overlay-containers/83a3d0059a63f85aa0e17653fd5da959565290df4e192ec6e6ce7190c18049a6/userdata/hostname","HostsPath":"/run/user/3267/containers/overlay-containers/83a3d0059a63f85aa0e17653fd5da959565290df4e192ec6e6ce7190c18049a6/userdata/hosts","StaticDir":"/home/dwalsh/.local/share/containers/storage/overlay-containers/83a3d0059a63f85aa0e17653fd5da959565290df4e192ec6e6ce7190c18049a6/userdata","OCIConfigPath":"/home/dwalsh/.local/share/containers/storage/overlay-containers/83a3d0059a63f85aa0e17653fd5da959565290df4e192ec6e6ce7190c18049a6/userdata/config.json","OCIRuntime":"crun","LogPath":"/home/dwalsh/.local/share/containers/storage/overlay-containers/83a3d0059a63f85aa0e17653fd5da959565290df4e192ec6e6ce7190c18049a6/userdata/ctr.log","LogTag":"","ConmonPidFile":"/run/user/3267/containers/overlay-containers/83a3d0059a63f85aa0e17653fd5da959565290df4e192ec6e6ce7190c18049a6/userdata/conmon.pid","Name":"pedantic_maxwell","RestartCount":0,"Driver":"overlay","MountLabel":"system_u:object_r:container_file_t:s0:c578,c656","ProcessLabel":"system_u:system_r:container_t:s0:c578,c656","AppArmorProfile":"","EffectiveCaps":null,"BoundingCaps":["CAP_AUDIT_WRITE","CAP_CHOWN","CAP_DAC_OVERRIDE","CAP_FOWNER","CAP_FSETID","CAP_KILL","CAP_NET_BIND_SERVICE","CAP_SETFCAP","CAP_SETGID","CAP_SETPCAP","CAP_SETUID","CAP_SYS_CHROOT"],"ExecIDs":[],"GraphDriver":{"Name":"overlay","Data":{"LowerDir":"/home/dwalsh/.local/share/containers/storage/overlay/0ccfac04663bbe8813b5f24502ee0b7371ce5bf3c5adeb12e4258d191c2cf7bc/diff","UpperDir":"/home/dwalsh/.local/share/containers/storage/overlay/1aef451310910fa651feae2f354c514f8a7cdcc5c7e01eac83b7c7791f079a08/diff","WorkDir":"/home/dwalsh/.local/share/containers/storage/overlay/1aef451310910fa651feae2f354c514f8a7cdcc5c7e01eac83b7c7791f079a08/work"}},"Mounts":[],"Dependencies":[],"NetworkSettings":{"EndpointID":"","Gateway":"","IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"","Bridge":"","SandboxID":"","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{},"SandboxKey":""},"ExitCommand":["/home/dwalsh/go/src/github.com/containers/podman/bin/podman","--root","/home/dwalsh/.local/share/containers/storage","--runroot","/run/user/3267/containers","--log-level","error","--cgroup-manager","systemd","--tmpdir","/run/user/3267/libpod/tmp","--runtime","crun","--storage-driver","overlay","--storage-opt","overlay.mount_program=/home/dwalsh/bin/fuse-overlayfs","--storage-opt","overlay.ignore_chown_errors=true","--events-backend","journald","container","cleanup","83a3d0059a63f85aa0e17653fd5da959565290df4e192ec6e6ce7190c18049a6"],"Namespace":"","IsInfra":false,"Config":{"Hostname":"83a3d0059a63","Domainname":"","User":"1","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","TERM=xterm","container=oci","DISTTAG=f32container","FGC=f32","HOSTNAME=83a3d0059a63","HOME=/bin"],"Cmd":["sleep","1000"],"Image":"registry.fedoraproject.org/fedora:latest","Volumes":null,"WorkingDir":"/","Entrypoint":"","OnBuild":null,"Labels":{"license":"MIT","name":"fedora","vendor":"Fedora Project","version":"32"},"Annotations":{"io.container.manager":"libpod","io.kubernetes.cri-o.Created":"2020-10-05T08:17:25.203464416-04:00","io.kubernetes.cri-o.TTY":"false","io.podman.annotations.autoremove":"FALSE","io.podman.annotations.init":"FALSE","io.podman.annotations.privileged":"FALSE","io.podman.annotations.publish-all":"FALSE","org.opencontainers.image.stopSignal":"15"},"StopSignal":15,"CreateCommand":["./bin/podman","run","-d","--user","1","fedora","sleep","1000"],"Umask":"0022"},"HostConfig":{"Binds":[],"CgroupMode":"private","ContainerIDFile":"","LogConfig":{"Type":"k8s-file","Config":null},"NetworkMode":"slirp4netns","PortBindings":{},"RestartPolicy":{"Name":"","MaximumRetryCount":0},"AutoRemove":false,"VolumeDriver":"","VolumesFrom":null,"CapAdd":[],"CapDrop":["CAP_MKNOD","CAP_NET_RAW"],"Dns":[],"DnsOptions":[],"DnsSearch":[],"ExtraHosts":[],"GroupAdd":[],"IpcMode":"private","Cgroup":"","Cgroups":"default","Links":null,"OomScoreAdj":0,"PidMode":"private","Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"SecurityOpt":[],"Tmpfs":{},"UTSMode":"private","UsernsMode":"","ShmSize":65536000,"Runtime":"oci","ConsoleSize":[0,0],"Isolation":"","CpuShares":0,"Memory":0,"NanoCpus":0,"CgroupParent":"user.slice","BlkioWeight":0,"BlkioWeightDevice":null,"BlkioDeviceReadBps":null,"BlkioDeviceWriteBps":null,"BlkioDeviceReadIOps":null,"BlkioDeviceWriteIOps":null,"CpuPeriod":0,"CpuQuota":0,"CpuRealtimePeriod":0,"CpuRealtimeRuntime":0,"CpusetCpus":"","CpusetMems":"","Devices":[],"DiskQuota":0,"KernelMemory":0,"MemoryReservation":0,"MemorySwap":0,"MemorySwappiness":0,"OomKillDisable":false,"PidsLimit":2048,"Ulimits":[],"CpuCount":0,"CpuPercent":0,"IOMaximumIOps":0,"IOMaximumBandwidth":0,"CgroupConf":null}}

@relrod
Copy link

relrod commented Oct 6, 2020

Those two work, but podman images doesn't:

podman images quay.io/ansible/default-test-container:1.11 --format '{{json .}}'

I think it might be fixed in git, just not in stable versions.

@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 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.
Projects
None yet
Development

No branches or pull requests

6 participants