Skip to content

Commit

Permalink
Adds support for privileged containers
Browse files Browse the repository at this point in the history
Updating moby#1129
  • Loading branch information
Ciro S. Costa committed Jun 4, 2018
1 parent edd5641 commit b5dd8bd
Show file tree
Hide file tree
Showing 6 changed files with 181 additions and 122 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(),
Privileged: c.spec().Privileged,
}

// 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 @@ -4861,6 +4861,13 @@ file {
type: TYPE_INT64
json_name: "pidsLimit"
}
field {
name: "privileged"
number: 26
label: LABEL_OPTIONAL
type: TYPE_BOOL
json_name: "privileged"
}
nested_type {
name: "LabelsEntry"
field {
Expand Down
Loading

0 comments on commit b5dd8bd

Please sign in to comment.