Closed corhere closed 1 year ago
It was my understanding from that despite being wrong, the prestart hooks could not be fixed (both in spec and implementation), because doing so would have broken a lot of projects relying on the old behaviour, hence why they were deprecated and replaced.
I think their placement in the lifecycle reflects that reality, and changing it is not really desirable.
I may be misremembering things from the sheer infinite #1008, but just my 2¢.
The actual behavior of runc can't be changed practically, so let's merge #1169
config.md specifies that "
prestart
hooks MUST be called after thestart
operation is called but before the user-specified program command is executed." However, the Lifecycle section in runtime.md contradicts this by showing thatprestart
hooks are called after thecreate
operation is called and before thestart
operation. As the note in the config.md section forcreateRuntime
hooks indicates, the order of operations in runtime.md#Lifecycle reflects the old runC behaviour which was contrary to the spec. Update the Lifecycle section to be congruent with the hook semantics as specified in config.md.Signed-off-by: Cory Snider csnider@mirantis.com