Skip to content

Commit

Permalink
Merge pull request #163 from laijs/RootfsPropagation
Browse files Browse the repository at this point in the history
Deduplicate the field of RootfsPropagation
  • Loading branch information
Mrunal Patel committed Sep 9, 2015
2 parents 931c6a9 + 339e038 commit fd0ff56
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
10 changes: 0 additions & 10 deletions config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ Valid values are the string after `CAP_` for capabilities defined in [the man pa
]
```

## Rootfs Mount Propagation

rootfsPropagation sets the rootfs's mount propagation.
Its value is either slave, private, or shared.
[The kernel doc](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt) has more information about mount propagation.

```json
"rootfsPropagation": "slave",
```

## User namespace mappings

```json
Expand Down
2 changes: 0 additions & 2 deletions config_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ type LinuxSpec struct {
type Linux struct {
// Capabilities are linux capabilities that are kept for the container.
Capabilities []string `json:"capabilities"`
// RootfsPropagation is the rootfs mount propagation mode for the container.
RootfsPropagation string `json:"rootfsPropagation"`
}

// User specifies linux specific user and group information for the container's
Expand Down
10 changes: 10 additions & 0 deletions runtime-config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,13 @@ The actions and operators are strings that match the definitions in seccomp.h fr
]
}
```

## Rootfs Mount Propagation

rootfsPropagation sets the rootfs's mount propagation.
Its value is either slave, private, or shared.
[The kernel doc](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt) has more information about mount propagation.

```json
"rootfsPropagation": "slave",
```

0 comments on commit fd0ff56

Please sign in to comment.