Skip to content

Commit

Permalink
config: add StopSignal
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
  • Loading branch information
runcom committed Jan 30, 2017
1 parent 00850ec commit 2ee2fb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions specs-go/v1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ee2fb9

Please sign in to comment.