spiegel_podman/pkg
Matthew Heon 6589d75565 Fix podman inspect on overlapping/missing objects
This started as a small fix to `podman inspect` where a container
and image, with the same name/tag, were present, and
`podman inspect` was run on that name. `podman inspect` in 1.9
(and `docker inspect`) will give you the container; in v2.0, we
gave the image. This was an easy fix (just reorder how we check
for image/container).

Unfortunately, in the process of testing this fix, I determined
that we regressed in a different area. When you run inspect on
a number of containers, some of which do not exist,
`podman inspect` should return an array of inspect results for
the objects that exist, then print a number of errors, one for
each object that could not be found. We were bailing after the
first error, and not printing output for the containers that
succeeded. (For reference, this applied to images as well). This
required a much more substantial set of changes to properly
handle - signatures for the inspect functions in ContainerEngine
and ImageEngine, plus the implementations of these interfaces,
plus the actual inspect frontend code needed to be adjusted to
use this.

Fixes #6556

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-06-16 14:33:33 -04:00
..
annotations Add ContainerManager annotation to created containers 2019-09-10 09:37:14 +02:00
api Fix podman inspect on overlapping/missing objects 2020-06-16 14:33:33 -04:00
auth compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00
autoupdate Give auto-update ability to use per-container authfile specified by label. 2020-05-17 11:37:12 +02:00
bindings Merge pull request #6603 from sujil02/python-test 2020-06-15 13:11:24 -04:00
cgroups Turn on More linters 2020-06-15 07:05:56 -04:00
channelwriter account for varlink calls that dont use more 2019-07-10 08:50:05 -05:00
checkpoint podmanv2 checkpoint and restore 2020-04-03 09:32:06 -05:00
criu Add helper function to read out CRIU version 2018-10-23 12:52:03 +02:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
domain Fix podman inspect on overlapping/missing objects 2020-06-16 14:33:33 -04:00
env make env handling os dependent 2020-06-02 08:28:08 -05:00
errorhandling image removal: refactor part 2 2020-05-04 16:01:45 +02:00
hooks Turn on More linters 2020-06-15 07:05:56 -04:00
inspect consolidate env handling into pkg/env 2020-03-03 11:47:24 +01:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
lookup Turn on More linters 2020-06-15 07:05:56 -04:00
namespaces podman: assume user namespace if there are mappings 2020-04-24 15:55:38 +02:00
netns network: hide EPERM warning when rootless 2019-10-01 08:51:58 +02:00
network Turn on More linters 2020-06-15 07:05:56 -04:00
parallel Fixup issues found by golint 2020-06-10 05:49:41 -04:00
ps Turn on More linters 2020-06-15 07:05:56 -04:00
registrar Update registrar unit tests to match them of cri-o 2019-04-04 08:53:32 +02:00
registries podman: mirror information 2019-12-12 19:53:46 -03:00
resolvconf use storage/pkg/ioutils 2020-03-09 09:03:51 +01:00
rootless rootless: move ns open before fork 2020-04-29 11:44:24 +02:00
rootlessport rootlessport: use two different channels 2020-04-29 12:35:23 +02:00
seccomp apiv2 container create using specgen 2020-02-19 15:20:15 -06:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal Turn on More linters 2020-06-15 07:05:56 -04:00
spec Fixup issues found by golint 2020-06-10 05:49:41 -04:00
specgen pod create: add --infra-conmon-pidfile 2020-06-11 11:01:13 +02:00
systemd generate systemd: --replace on named containers/pods 2020-06-15 15:56:02 +02:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
tracing make lint: include pkg/tracing 2020-01-14 09:54:48 +01:00
trust Fixup issues found by golint 2020-06-10 05:49:41 -04:00
util Turn on More linters 2020-06-15 07:05:56 -04:00
varlink V2 Move varlink home 2020-03-30 08:18:35 -07:00
varlinkapi Fixup issues found by golint 2020-06-10 05:49:41 -04:00