Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Gabrielsson committed Mar 6, 2022
1 parent 4734c4c commit d1e2931
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dotyaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type Services struct {
Tty bool `yaml:"tty,omitempty"`
Ulimits ServicesUlimits `yaml:"ulimits,omitempty"`
User string `yaml:"user,omitempty"`
UsernsMode string `yaml:"userns_mode,omitempty"`
Volumes []string `yaml:"volumes,omitempty"`
WorkingDir string `yaml:"working_dir,omitempty"`
}
Expand Down
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ func buildCommand(e *Yaml, l []EnvironmentVariable) Command {
arr = append(arr, "--user", v.User)
}

if v.UsernsMode != "" {
arr = append(arr, "--userns", v.UsernsMode)
}

if v.WorkingDir != "" {
arr = append(arr, "--workdir", v.WorkingDir)
}
Expand Down

0 comments on commit d1e2931

Please sign in to comment.