Use conf value when killing loaded container
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
8ec5c30d83
commit
357c47b1a3
@ -274,8 +274,8 @@ func (r *Runtime) loadContainer(path string) (*Task, error) {
|
||||
func (r *Runtime) killContainer(ctx context.Context, id string) {
|
||||
log.G(ctx).Debug("terminating container after failed load")
|
||||
runtime := &runc.Runc{
|
||||
// TODO: get Command provided for initial container creation
|
||||
// Command: r.Runtime,
|
||||
// TODO: should we get Command provided for initial container creation?
|
||||
Command: r.runtime,
|
||||
LogFormat: runc.JSON,
|
||||
PdeathSignal: unix.SIGKILL,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user