We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3281559 commit 2393461Copy full SHA for 2393461
1 file changed
pkg/api/handlers/compat/exec.go
@@ -82,6 +82,12 @@ func ExecCreateHandler(w http.ResponseWriter, r *http.Request) {
82
}
83
libpodConfig.ExitCommand = exitCommandArgs
84
85
+ // When DetachKeys was not provided, store the system default so that
86
+ // exec inspect returns a meaningful value rather than an empty string.
87
+ if libpodConfig.DetachKeys == nil {
88
+ libpodConfig.DetachKeys = &runtimeConfig.Engine.DetachKeys
89
+ }
90
+
91
// Run the exit command after 5 minutes, to mimic Docker's exec cleanup
92
// behavior.
93
libpodConfig.ExitCommandDelay = runtimeConfig.Engine.ExitCommandDelay
0 commit comments