Merge pull request #943 from mlaventure/honor-runtime-conf
Use conf value when killing loaded container
This commit is contained in:
commit
7071276f64
@ -278,8 +278,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,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user