Skip to content

Commit

Permalink
Add support for uts attribute in service definition
Browse files Browse the repository at this point in the history
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
  • Loading branch information
laurazard committed Dec 23, 2022
1 parent 4c5c833 commit 0f2b599
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loader/full-example.yml
Expand Up @@ -182,6 +182,8 @@ services:

ipc: host

uts: host

# Mapping or list
# Mapping values can be strings, numbers or null
labels:
Expand Down
3 changes: 3 additions & 0 deletions loader/full-struct_test.go
Expand Up @@ -200,6 +200,7 @@ func services(workingDir, homeDir string) []types.ServiceConfig {
Hostname: "foo",
Image: "redis",
Ipc: "host",
Uts: "host",
Labels: map[string]string{
"com.example.description": "Accounting webapp",
"com.example.number": "42",
Expand Down Expand Up @@ -877,6 +878,7 @@ services:
hard: 40000
nproc: 65535
user: someone
uts: host
volumes:
- type: volume
target: /var/lib/mysql
Expand Down Expand Up @@ -1530,6 +1532,7 @@ func fullExampleJSON(workingDir, homeDir string) string {
"nproc": 65535
},
"user": "someone",
"uts": "host",
"volumes": [
{
"type": "volume",
Expand Down
1 change: 1 addition & 0 deletions schema/compose-spec.json
Expand Up @@ -366,6 +366,7 @@
}
},
"user": {"type": "string"},
"uts": {"type": "string"},
"userns_mode": {"type": "string"},
"volumes": {
"type": "array",
Expand Down

0 comments on commit 0f2b599

Please sign in to comment.