Skip to content

Commit 0f2b599

Browse files
committed
Add support for uts attribute in service definition
Signed-off-by: Laura Brehm <[email protected]>
1 parent 4c5c833 commit 0f2b599

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

loader/full-example.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ services:
182182

183183
ipc: host
184184

185+
uts: host
186+
185187
# Mapping or list
186188
# Mapping values can be strings, numbers or null
187189
labels:

loader/full-struct_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ func services(workingDir, homeDir string) []types.ServiceConfig {
200200
Hostname: "foo",
201201
Image: "redis",
202202
Ipc: "host",
203+
Uts: "host",
203204
Labels: map[string]string{
204205
"com.example.description": "Accounting webapp",
205206
"com.example.number": "42",
@@ -877,6 +878,7 @@ services:
877878
hard: 40000
878879
nproc: 65535
879880
user: someone
881+
uts: host
880882
volumes:
881883
- type: volume
882884
target: /var/lib/mysql
@@ -1530,6 +1532,7 @@ func fullExampleJSON(workingDir, homeDir string) string {
15301532
"nproc": 65535
15311533
},
15321534
"user": "someone",
1535+
"uts": "host",
15331536
"volumes": [
15341537
{
15351538
"type": "volume",

schema/compose-spec.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@
366366
}
367367
},
368368
"user": {"type": "string"},
369+
"uts": {"type": "string"},
369370
"userns_mode": {"type": "string"},
370371
"volumes": {
371372
"type": "array",

0 commit comments

Comments
 (0)