spiegel_podman/pkg/api/handlers/compat
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
..
changes.go V2 podman diff(changes) support 2020-04-07 09:39:46 -07:00
containers.go Move logs functionality to separate file for APIv2 2020-06-17 11:48:53 -07:00
containers_archive.go v2 copy endpoints 2020-05-26 12:04:20 -05:00
containers_attach.go Allow recursive dependency start with Init() 2020-06-18 09:34:04 -04:00
containers_create.go Turn on More linters 2020-06-15 07:05:56 -04:00
containers_export.go podmanv2 export 2020-04-01 16:02:53 -05:00
containers_logs.go Move logs functionality to separate file for APIv2 2020-06-17 11:48:53 -07:00
containers_pause.go Refactor handler packages 2020-03-10 08:03:41 -07:00
containers_prune.go Adding system prune for podman v2 2020-04-24 15:44:07 -04:00
containers_restart.go podmanv2 add core container commands 2020-03-22 13:24:45 -05:00
containers_start.go enable pod_create remote integration tests 2020-05-20 14:57:30 -05:00
containers_stats.go V2 verify JSON output is consistent and doesn't drift 2020-05-28 16:20:29 -07:00
containers_stop.go enable pod_create remote integration tests 2020-05-20 14:57:30 -05:00
containers_top.go Refactor handler packages 2020-03-10 08:03:41 -07:00
containers_unpause.go Refactor handler packages 2020-03-10 08:03:41 -07:00
events.go Add streaming ability to endpoint 2020-05-27 12:16:39 -05:00
exec.go Enable detached exec for remote 2020-06-02 15:30:42 -04:00
images.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00
images_build.go fix misc remote build issues 2020-06-17 09:01:43 -05:00
images_history.go Turn on More linters 2020-06-15 07:05:56 -04:00
images_push.go compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00
images_remove.go V2 podman image rm | podman rmi [IMAGE] 2020-03-25 17:54:14 -07:00
images_save.go Refactor handler packages 2020-03-10 08:03:41 -07:00
images_search.go podmanV2: implement search 2020-04-09 13:05:19 +02:00
images_tag.go Refactor handler packages 2020-03-10 08:03:41 -07:00
info.go Turn on More linters 2020-06-15 07:05:56 -04:00
networks.go Turn on More linters 2020-06-15 07:05:56 -04:00
ping.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00
resize.go Add bindings for exec and enable attached remote 2020-06-01 17:24:00 -04:00
swagger.go network compatibility endpoints for API 2020-05-22 13:48:52 -05:00
system.go Refactor handler packages 2020-03-10 08:03:41 -07:00
types.go V2 verify JSON output is consistent and doesn't drift 2020-05-28 16:20:29 -07:00
unsupported.go podman v2 remove bloat v2 2020-04-16 12:04:46 -05:00
version.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00