Skip to content

Commit d93fd03

Browse files
gloursndeloof
authored andcommitted
add privileged attribut to build section
Signed-off-by: Guillaume Lours <[email protected]>
1 parent 1eb16a2 commit d93fd03

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

build.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,16 @@ configuration, which means for Linux `/etc/hosts` will get extra lines:
250250
`isolation` specifies a build’s container isolation technology. Like [isolation](spec.md#isolation) supported values
251251
are platform-specific.
252252

253+
### privileged
254+
255+
`privileged` configures the service image to build with elevated privileges. Support and actual impacts are platform-specific.
256+
257+
```yml
258+
build:
259+
context: .
260+
privileged: true
261+
```
262+
253263
### labels
254264

255265
`labels` add metadata to the resulting image. `labels` can be set either as an array or a map.

schema/compose-spec.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"shm_size": {"type": ["integer", "string"]},
103103
"extra_hosts": {"$ref": "#/definitions/list_or_dict"},
104104
"isolation": {"type": "string"},
105+
"privileged": {"type": "boolean"},
105106
"secrets": {"$ref": "#/definitions/service_config_or_secret"},
106107
"tags":{"type": "array", "items": {"type": "string"}}
107108
},

0 commit comments

Comments
 (0)