Skip to content

Commit

Permalink
Add capabilities list to container specification
Browse files Browse the repository at this point in the history
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
  • Loading branch information
olljanat committed Dec 16, 2018
1 parent 9afd76b commit 993b4bc
Show file tree
Hide file tree
Showing 6 changed files with 284 additions and 137 deletions.
1 change: 1 addition & 0 deletions agent/exec/dockerapi/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ func (c *containerConfig) hostConfig() *enginecontainer.HostConfig {
PortBindings: c.portBindings(),
Init: c.init(),
Isolation: c.isolation(),
Capabilities: c.spec().Capabilities,
}

// The format of extra hosts on swarmkit is specified in:
Expand Down
7 changes: 7 additions & 0 deletions api/api.pb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4919,6 +4919,13 @@ file {
type_name: ".google.protobuf.Int64Value"
json_name: "memorySwappiness"
}
field {
name: "capabilities"
number: 29
label: LABEL_REPEATED
type: TYPE_STRING
json_name: "capabilities"
}
nested_type {
name: "LabelsEntry"
field {
Expand Down
Loading

0 comments on commit 993b4bc

Please sign in to comment.