spiegel_podman/pkg/varlinkapi
Matthew Heon 1e3e99f2fe Move the HostConfig portion of Inspect inside libpod
When we first began writing Podman, we ran into a major issue
when implementing Inspect. Libpod deliberately does not tie its
internal data structures to Docker, and stores most information
about containers encoded within the OCI spec. However, Podman
must present a CLI compatible with Docker, which means it must
expose all the information in 'docker inspect' - most of which is
not contained in the OCI spec or libpod's Config struct.

Our solution at the time was the create artifact. We JSON'd the
complete CreateConfig (a parsed form of the CLI arguments to
'podman run') and stored it with the container, restoring it when
we needed to run commands that required the extra info.

Over the past month, I've been looking more at Inspect, and
refactored large portions of it into Libpod - generating them
from what we know about the OCI config and libpod's (now much
expanded, versus previously) container configuration. This path
comes close to completing the process, moving the last part of
inspect into libpod and removing the need for the create
artifact.

This improves libpod's compatability with non-Podman containers.
We no longer require an arbitrarily-formatted JSON blob to be
present to run inspect.

Fixes: #3500

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-07-17 16:48:38 -04:00
..
virtwriter pkg/varlinkapi/virtwriter/virtwriter.go: simplify func Reader 2019-06-03 16:31:45 +02:00
attach.go libpod removal from main (phase 2) 2019-06-27 07:56:24 -05:00
config.go Revert "Add VarlinkCall.RequiresUpgrade() type and method" 2019-05-16 14:36:11 -04:00
containers.go Move the HostConfig portion of Inspect inside libpod 2019-07-17 16:48:38 -04:00
containers_create.go podman-remote create|run 2019-04-08 09:05:31 -05:00
events.go journald event logging 2019-04-24 16:00:04 -05:00
generate.go Generate systemd unit files for containers 2019-05-02 14:35:53 -05:00
images.go account for varlink calls that dont use more 2019-07-10 08:50:05 -05:00
mount.go podman-remote create|run 2019-04-08 09:05:31 -05:00
pods.go enable integration tests for remote-client 2019-05-07 14:06:02 -05:00
remote_client.go podman-remote create|run 2019-04-08 09:05:31 -05:00
system.go libpod removal from main (phase 2) 2019-06-27 07:56:24 -05:00
transfers.go Fix the double replySendFile() 2019-07-12 15:36:08 +02:00
util.go account for varlink calls that dont use more 2019-07-10 08:50:05 -05:00
volumes.go podman-remote create|run 2019-04-08 09:05:31 -05:00