Merge pull request #4772 from boaz0/closes_4628

Add the rmi flag to podman-run to delete container image
This commit is contained in:
OpenShift Merge Robot
2020-03-04 10:58:10 -05:00
committed by GitHub
9 changed files with 70 additions and 3 deletions

View File

@ -157,6 +157,7 @@ type CreateConfig struct {
Resources CreateResourceConfig
RestartPolicy string
Rm bool //rm
Rmi bool //rmi
StopSignal syscall.Signal // stop-signal
StopTimeout uint // stop-timeout
Systemd bool
@ -234,6 +235,10 @@ func (c *CreateConfig) createExitCommand(runtime *libpod.Runtime) ([]string, err
command = append(command, "--rm")
}
if c.Rmi {
command = append(command, "--rmi")
}
return command, nil
}