mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
Merge pull request #6968 from vieux/cap_add_drop
Add support for --cap-add and --cap-drop
This commit is contained in:
@@ -43,6 +43,12 @@ You can now use the `stop` parameter to stop running containers before removal
|
||||
**New!**
|
||||
You can now use the `kill` parameter to kill running containers before removal.
|
||||
|
||||
`POST /containers/(id)/start`
|
||||
|
||||
**New!**
|
||||
The `hostConfig` option now accepts the field `CapAdd`, which specifies a list of capabilities
|
||||
to add, and the field `CapDrop`, which specifies a list of capabilities to drop.
|
||||
|
||||
## v1.13
|
||||
|
||||
### Full Documentation
|
||||
|
||||
@@ -241,7 +241,9 @@ Return low-level information on the container `id`
|
||||
]
|
||||
},
|
||||
"Links": ["/name:alias"],
|
||||
"PublishAllPorts": false
|
||||
"PublishAllPorts": false,
|
||||
"CapAdd: ["NET_ADMIN"],
|
||||
"CapDrop: ["MKNOD"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -410,7 +412,9 @@ Start the container `id`
|
||||
"PublishAllPorts":false,
|
||||
"Privileged":false,
|
||||
"Dns": ["8.8.8.8"],
|
||||
"VolumesFrom": ["parent", "other:ro"]
|
||||
"VolumesFrom": ["parent", "other:ro"],
|
||||
"CapAdd: ["NET_ADMIN"],
|
||||
"CapDrop: ["MKNOD"]
|
||||
}
|
||||
|
||||
**Example response**:
|
||||
|
||||
Reference in New Issue
Block a user