mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Added a fail if the user sets detached to true when qemu is running locally
This commit is contained in:
parent
224ade8fea
commit
a7ec17b08f
@ -366,6 +366,11 @@ func runQemuLocal(config QemuConfig) error {
|
||||
}
|
||||
}
|
||||
|
||||
// Detached mode is only supported in a container.
|
||||
if config.Detached == true {
|
||||
return fmt.Errorf("Detached mode is only supported when running in a container, not locally")
|
||||
}
|
||||
|
||||
qemuCmd := exec.Command(config.QemuBinPath, args...)
|
||||
// If verbosity is enabled print out the full path/arguments
|
||||
log.Debugf("%v\n", qemuCmd.Args)
|
||||
|
Loading…
Reference in New Issue
Block a user