podman/libpod
Matthew Heon 333f664da7 When performing state-changing operations, don't exec runtime
If we start a container and it does not error, we can assume the
container is now running. Subsequent API calls will sync for us
to see if it died, so we can just set ContainerStateRunning
instead of launching the runtime to explicitly get state.

The same logic applies to pause and unpause.

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #223
Approved by: rhatdan
2018-01-16 14:32:38 +00:00
..
common Add manifest type conversion to kpod push 2017-12-14 18:37:17 +00:00
driver Update kpod inspect to use the new container state 2017-12-12 09:46:23 -05:00
layers Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container.go When performing state-changing operations, don't exec runtime 2018-01-16 14:32:38 +00:00
container_attach.go Use debugf to allow parsing of format specifier 2017-12-12 00:13:44 +05:30
container_inspect.go Add basic network inspection info 2018-01-08 16:12:50 +00:00
container_top.go Disable locking on functions in batch operations 2018-01-14 12:27:33 +00:00
diff.go remove unused functions and variables 2017-11-28 14:30:12 +00:00
errors.go Add schema validation to DB 2017-11-30 18:05:56 +00:00
finished_amd64.go Add ability to update container status from runc 2017-11-21 20:09:09 +00:00
image_inspect.go Add podman commit command 2017-12-20 10:08:17 +00:00
in_memory_state.go Add ability to refresh state in DB 2017-12-07 13:15:34 -05:00
info.go Update kpod info to use new libpod api 2017-12-14 00:54:21 +00:00
inspect_data.go Add basic network inspection info 2018-01-08 16:12:50 +00:00
networking.go Update CNI plugin directories to search default location as well 2018-01-11 10:10:46 -05:00
oci.go Plumb through the --stop-timeout signal handling 2017-12-20 18:10:43 +00:00
options.go Remove unused fields from runtime config 2018-01-12 17:01:36 +00:00
pod.go Remove lock existence checks when creating pods/containers 2017-12-14 18:18:16 +00:00
runc.go kpod exec 2017-12-11 08:24:30 -06:00
runtime.go Remove unused fields from runtime config 2018-01-12 17:01:36 +00:00
runtime_ctr.go Add latest to wait 2018-01-08 22:44:38 +00:00
runtime_img.go Shortname deletion continued 2018-01-08 20:12:20 +00:00
runtime_img_test.go libpod/runtime_img_test.go Unit Tests 2017-11-04 11:12:14 -05:00
runtime_pod.go Update pods to use file locks 2017-12-14 18:18:16 +00:00
sql_state.go Add DNS and security fields to DB 2018-01-15 19:50:59 +00:00
sql_state_internal.go Add DNS and security fields to DB 2018-01-15 19:50:59 +00:00
sql_state_test.go Add DNS and security fields to DB 2018-01-15 19:50:59 +00:00
state.go Add ability to refresh state in DB 2017-12-07 13:15:34 -05:00
stats.go kpod stats 2017-12-13 21:15:09 +00:00
storage.go podman create/run need to load information from the image 2018-01-03 12:38:18 +00:00
util.go podman run container id to file 2018-01-11 21:27:26 +00:00
util_test.go kpod stats 2017-12-13 21:15:09 +00:00