podman/pkg/varlinkapi
Matthew Heon c4627b5846 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>
2020-07-10 11:22:23 -04:00
..
virtwriter fix lint - pkg/varlinkapi/virtwriter 2020-01-08 15:44:30 +01:00
attach.go move go module to v2 2020-07-06 15:50:12 +02:00
config.go move go module to v2 2020-07-06 15:50:12 +02:00
container.go move go module to v2 2020-07-06 15:50:12 +02:00
containers.go log API: add context to allow for cancelling 2020-07-09 15:13:07 +02:00
containers_create.go move go module to v2 2020-07-06 15:50:12 +02:00
create.go Fix container and pod create commands for remote create 2020-07-10 11:22:23 -04:00
events.go move go module to v2 2020-07-06 15:50:12 +02:00
funcs.go move go module to v2 2020-07-06 15:50:12 +02:00
generate.go move go module to v2 2020-07-06 15:50:12 +02:00
images.go move go module to v2 2020-07-06 15:50:12 +02:00
intermediate.go Podman V2 birth 2020-04-16 15:53:58 -05:00
intermediate_varlink.go move go module to v2 2020-07-06 15:50:12 +02:00
mount.go move go module to v2 2020-07-06 15:50:12 +02:00
pods.go move go module to v2 2020-07-06 15:50:12 +02:00
remote_client.go move go module to v2 2020-07-06 15:50:12 +02:00
shortcuts.go move go module to v2 2020-07-06 15:50:12 +02:00
system.go move go module to v2 2020-07-06 15:50:12 +02:00
transfers.go move go module to v2 2020-07-06 15:50:12 +02:00
util.go move go module to v2 2020-07-06 15:50:12 +02:00
volumes.go move go module to v2 2020-07-06 15:50:12 +02:00