Add ExitCommandDelay configuration use in API exec handler

[NO NEW TESTS NEEDED]

Signed-off-by: Rover van der Noort <s.r.vandernoort@student.tudelft.nl>
This commit is contained in:
Rover van der Noort 2022-03-03 13:52:32 +01:00 committed by rvandernoort
parent ed59b89a43
commit 2fb6a8daf6
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ func ExecCreateHandler(w http.ResponseWriter, r *http.Request) {
// Run the exit command after 5 minutes, to mimic Docker's exec cleanup
// behavior.
libpodConfig.ExitCommandDelay = 5 * 60
libpodConfig.ExitCommandDelay = runtimeConfig.Engine.ExitCommandDelay
sessID, err := ctr.ExecCreate(libpodConfig)
if err != nil {