Fix: docker -d -h start daemon instead of showing help menu
Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com> Upstream-commit: 0ab28c658952267af8e86a5b1055dd4b9cf0ec51 Component: engine
This commit is contained in:
@ -70,6 +70,10 @@ func main() {
|
||||
setDefaultConfFlag(flTrustKey, defaultTrustKeyFile)
|
||||
|
||||
if *flDaemon {
|
||||
if *flHelp {
|
||||
flag.Usage()
|
||||
return
|
||||
}
|
||||
mainDaemon()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user