Use conf value when killing loaded container

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2017-05-31 14:51:28 -07:00
parent 8ec5c30d83
commit 357c47b1a3

View File

@ -274,8 +274,8 @@ func (r *Runtime) loadContainer(path string) (*Task, error) {
func (r *Runtime) killContainer(ctx context.Context, id string) { func (r *Runtime) killContainer(ctx context.Context, id string) {
log.G(ctx).Debug("terminating container after failed load") log.G(ctx).Debug("terminating container after failed load")
runtime := &runc.Runc{ runtime := &runc.Runc{
// TODO: get Command provided for initial container creation // TODO: should we get Command provided for initial container creation?
// Command: r.Runtime, Command: r.runtime,
LogFormat: runc.JSON, LogFormat: runc.JSON,
PdeathSignal: unix.SIGKILL, PdeathSignal: unix.SIGKILL,
} }