podman/pkg/varlinkapi
Matthew Heon b20619e5b0 Allow recursive dependency start with Init()
As part of APIv2 Attach, we need to be able to attach to freshly
created containers (in ContainerStateConfigured). This isn't
something Libpod is interested in supporting, so we use Init() to
get the container into ContainerStateCreated, in which attach is
possible. Problem: Init() will fail if dependencies are not
started, so a fresh container in a fresh pod will fail. The
simplest solution is to extend the existing recursive start code
from Start() to Init(), allowing dependency containers to be
started when we initialize the container (optionally, controlled
via bool).

Also, update some comments in container_api.go to make it more
clear how some of our major API calls work.

Fixes #6646

Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-06-18 09:34:04 -04:00
..
virtwriter fix lint - pkg/varlinkapi/virtwriter 2020-01-08 15:44:30 +01:00
attach.go V2 podman system service 2020-04-07 19:22:10 -07:00
config.go V2 podman system service 2020-04-07 19:22:10 -07:00
container.go Podman V2 birth 2020-04-16 15:53:58 -05:00
containers.go Allow recursive dependency start with Init() 2020-06-18 09:34:04 -04:00
containers_create.go Podman V2 birth 2020-04-16 15:53:58 -05:00
create.go Fixup issues found by golint 2020-06-10 05:49:41 -04:00
events.go V2 podman system service 2020-04-07 19:22:10 -07:00
funcs.go Podman V2 birth 2020-04-16 15:53:58 -05:00
generate.go Podman V2 birth 2020-04-16 15:53:58 -05:00
images.go Podman V2 birth 2020-04-16 15:53:58 -05:00
intermediate.go Podman V2 birth 2020-04-16 15:53:58 -05:00
intermediate_varlink.go Update podman to use containers.conf 2020-04-20 16:11:36 -04:00
mount.go V2 podman system service 2020-04-07 19:22:10 -07:00
pods.go v2 podman stats 2020-05-05 08:46:51 -05:00
remote_client.go v2 podman stats 2020-05-05 08:46:51 -05:00
shortcuts.go Podman V2 birth 2020-04-16 15:53:58 -05:00
system.go podman version --format ... was not working 2020-05-21 16:31:34 -04:00
transfers.go Fix EOM for SendFile 2020-05-18 12:45:00 -05:00
util.go Podman V2 birth 2020-04-16 15:53:58 -05:00
volumes.go Fixup issues found by golint 2020-06-10 05:49:41 -04:00