Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for uts attribute in service definition #333

Merged
merged 1 commit into from Dec 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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