spiegel_podman/pkg/domain/entities
Matthew Heon 0630d19b34 Fix container and pod create commands for remote create
In `podman inspect` output for containers and pods, we include
the command that was used to create the container. This is also
used by `podman generate systemd --new` to generate unit files.

With remote podman, the generated create commands were incorrect
since we sourced directly from os.Args on the server side, which
was guaranteed to be `podman system service` (or some variant
thereof). The solution is to pass the command along in the
Specgen or PodSpecgen, where we can source it from the client's
os.Args.

This will still be VERY iffy for mixed local/remote use (doing a
`podman --remote run ...` on a remote client then a
`podman generate systemd --new` on the server on the same
container will not work, because the `--remote` flag will slip
in) but at the very least the output of `podman inspect` will be
correct. We can look into properly handling `--remote` (parsing
it out would be a little iffy) in a future PR.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>

<MH: Fixed build after cherry-pick>

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-07-22 14:39:41 -04:00
..
auto-update.go auto-update: support authfiles 2020-05-12 10:20:48 +02:00
container_ps.go move go module to v2 2020-07-06 15:52:17 +02:00
containers.go move go module to v2 2020-07-06 15:52:17 +02:00
engine.go V2 podman system connection 2020-06-24 14:41:09 -04:00
engine_container.go move go module to v2 2020-07-06 15:52:17 +02:00
engine_image.go Fix podman inspect on overlapping/missing objects 2020-06-16 14:33:33 -04:00
engine_system.go Adds tunnel routes for system reset. 2020-05-11 17:03:32 -04:00
events.go move go module to v2 2020-07-06 15:52:17 +02:00
filters.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00
generate.go Turn on More linters 2020-06-15 07:05:56 -04:00
healthcheck.go podmanv2 enable healthcheck run 2020-03-29 18:48:29 -05:00
images.go move go module to v2 2020-07-06 15:52:17 +02:00
manifest.go compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00
network.go filter option added to network ls command. 2020-05-20 02:53:47 +00:00
play.go Fix missing doc for field in PlayKubePod 2020-06-04 18:39:37 -07:00
pods.go Fix container and pod create commands for remote create 2020-07-22 14:39:41 -04:00
set.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00
system.go move go module to v2 2020-07-06 15:52:17 +02:00
types.go move go module to v2 2020-07-06 15:52:17 +02:00
volumes.go Show Anon, GID, UID in v2 volumes 2020-06-16 15:48:53 -04:00