mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
config: store the runtime used to create each container
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -350,6 +350,9 @@ type ContainerConfig struct {
|
|||||||
|
|
||||||
PostConfigureNetNS bool `json:"postConfigureNetNS"`
|
PostConfigureNetNS bool `json:"postConfigureNetNS"`
|
||||||
|
|
||||||
|
// OCIRuntime used to create the container
|
||||||
|
OCIRuntime string `json:"runtime,omitempty"`
|
||||||
|
|
||||||
// ExitCommand is the container's exit command.
|
// ExitCommand is the container's exit command.
|
||||||
// This Command will be executed when the container exits
|
// This Command will be executed when the container exits
|
||||||
ExitCommand []string `json:"exitCommand,omitempty"`
|
ExitCommand []string `json:"exitCommand,omitempty"`
|
||||||
|
@ -62,6 +62,8 @@ func (r *Runtime) newContainer(ctx context.Context, rSpec *spec.Spec, options ..
|
|||||||
|
|
||||||
ctr.config.StopTimeout = CtrRemoveTimeout
|
ctr.config.StopTimeout = CtrRemoveTimeout
|
||||||
|
|
||||||
|
ctr.config.OCIRuntime = r.config.OCIRuntime
|
||||||
|
|
||||||
// Set namespace based on current runtime namespace
|
// Set namespace based on current runtime namespace
|
||||||
// Do so before options run so they can override it
|
// Do so before options run so they can override it
|
||||||
if r.config.Namespace != "" {
|
if r.config.Namespace != "" {
|
||||||
|
Reference in New Issue
Block a user