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

This commit is contained in:
Myers Carpenter
2019-01-08 17:26:54 -08:00
committed by dlorenc
parent 1b9e74334b
commit 1591f41f22
+4
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