From bb2d3cd1bef792b923a08d5fa916b20c0eaf1368 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Fri, 6 Nov 2015 18:02:50 -0500 Subject: [PATCH] Add Poststart hook to libcontainer config Signed-off-by: Mrunal Patel --- libcontainer/configs/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcontainer/configs/config.go b/libcontainer/configs/config.go index 7fd311db4..3a76732b9 100644 --- a/libcontainer/configs/config.go +++ b/libcontainer/configs/config.go @@ -183,6 +183,9 @@ type Hooks struct { // but before the user supplied command is executed from init. Prestart []Hook + // Poststart commands are executed after the container init process starts. + Poststart []Hook + // Poststop commands are executed after the container init process exits. Poststop []Hook }