diff --git a/config.md b/config.md index 1a3e81627..67c7a4e30 100644 --- a/config.md +++ b/config.md @@ -124,6 +124,10 @@ Note: Any OPTIONAL field MAY also be set to null, which is equivalent to being a If there are no labels then this property MAY either be absent or an empty map. Implementations that are reading/processing this configuration file MUST NOT generate an error if they encounter an unknown labels key. + - **StopSignal** *string*, OPTIONAL + + The field contains the signal to stop the container. + - **rootfs** *object*, REQUIRED The rootfs key references the layer content addresses used by the image. diff --git a/specs-go/v1/config.go b/specs-go/v1/config.go index ddbc58622..88992ebaf 100644 --- a/specs-go/v1/config.go +++ b/specs-go/v1/config.go @@ -41,6 +41,9 @@ type ImageConfig struct { // Labels contains arbitrary metadata for the container. Labels map[string]string `json:"labels,omitempty"` + + // StopSignal is the signal to stop the container. + StopSignal string `json:"StopSignal,omitempty"` } // RootFS describes a layer content addresses