USER command needs /etc/passwd, thus require the fs to be unpacked (#508)

This commit is contained in:
Myers Carpenter 2019-01-08 20:26:54 -05:00 committed by dlorenc
parent 1b9e74334b
commit 1591f41f22
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ type UserCommand struct {
cmd *instructions.UserCommand
}
func (r *UserCommand) RequiresUnpackedFS() bool {
return true
}
func (r *UserCommand) ExecuteCommand(config *v1.Config, buildArgs *dockerfile.BuildArgs) error {
logrus.Info("cmd: USER")
u := r.cmd.User