mirror of
https://github.com/containers/podman
synced 2024-10-21 09:45:32 +00:00
b20619e5b0
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> |
||
---|---|---|
.. | ||
virtwriter | ||
attach.go | ||
config.go | ||
container.go | ||
containers.go | ||
containers_create.go | ||
create.go | ||
events.go | ||
funcs.go | ||
generate.go | ||
images.go | ||
intermediate.go | ||
intermediate_varlink.go | ||
mount.go | ||
pods.go | ||
remote_client.go | ||
shortcuts.go | ||
system.go | ||
transfers.go | ||
util.go | ||
volumes.go |