USER command needs /etc/passwd, thus require the fs to be unpacked (#508)
This commit is contained in:
parent
1b9e74334b
commit
1591f41f22
|
|
@ -31,6 +31,10 @@ type UserCommand struct {
|
||||||
cmd *instructions.UserCommand
|
cmd *instructions.UserCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *UserCommand) RequiresUnpackedFS() bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
func (r *UserCommand) ExecuteCommand(config *v1.Config, buildArgs *dockerfile.BuildArgs) error {
|
func (r *UserCommand) ExecuteCommand(config *v1.Config, buildArgs *dockerfile.BuildArgs) error {
|
||||||
logrus.Info("cmd: USER")
|
logrus.Info("cmd: USER")
|
||||||
u := r.cmd.User
|
u := r.cmd.User
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue