Skip to content

Commit

Permalink
[containerocibase] Add missing --user run args
Browse files Browse the repository at this point in the history
  • Loading branch information
cgalibern committed Nov 15, 2024
1 parent c0890f7 commit 52b1db7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/rescontainerocibase/executor_args.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ func (ea *ExecutorArg) RunArgsBase() (Args, error) {
if bt.Privileged {
a = append(a, Arg{Option: "--privileged"})
}

if len(bt.User) > 0 {
a = append(a, Arg{Option: "--user", Value: bt.User, HasValue: true})
}

if bt.Interactive {
a = append(a, Arg{Option: "--interactive"})
}
Expand Down

0 comments on commit 52b1db7

Please sign in to comment.