run: set userStr
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
parent
52acd798f8
commit
fec7c126f9
|
|
@ -71,6 +71,7 @@ func (r *RunCommand) ExecuteCommand(config *v1.Config, buildArgs *dockerfile.Bui
|
||||||
var userStr string
|
var userStr string
|
||||||
// If specified, run the command as a specific user
|
// If specified, run the command as a specific user
|
||||||
if config.User != "" {
|
if config.User != "" {
|
||||||
|
userStr = config.User
|
||||||
uid, gid, err := util.GetUIDAndGIDFromString(config.User, true)
|
uid, gid, err := util.GetUIDAndGIDFromString(config.User, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue