mirror of
https://github.com/containers/podman
synced 2024-10-18 16:24:34 +00:00
run: fix detach passthrough and --rmi
When we use passthrough logging and the --rmi option should not try to delete the image right away. Simply speak passthough only means do not print the cotnainer id but we should never try to delete the image here as this will be done in the cleanup process. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
8e78028e2c
commit
dc724e5e80
|
@ -237,8 +237,10 @@ func run(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if runOpts.Detach && !passthrough {
|
||||
fmt.Println(report.Id)
|
||||
if runOpts.Detach {
|
||||
if !passthrough {
|
||||
fmt.Println(report.Id)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
if runRmi {
|
||||
|
|
Loading…
Reference in a new issue