mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Better warning message on OOM kill disable without mem limit
Modify the warning to be more readable/understandable. Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
This commit is contained in:
parent
ba15b6f049
commit
4983e5807e
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
|
|||
}
|
||||
|
||||
if hostConfig.OomKillDisable != nil && *hostConfig.OomKillDisable && hostConfig.Memory == 0 {
|
||||
fmt.Fprintf(cli.err, "WARNING: Dangerous only disable the OOM Killer on containers but not set the '-m/--memory' option\n")
|
||||
fmt.Fprintf(cli.err, "WARNING: Disabling the OOM killer on containers without setting a '-m/--memory' limit may be dangerous.\n")
|
||||
}
|
||||
|
||||
if len(hostConfig.DNS) > 0 {
|
||||
|
|
Loading…
Add table
Reference in a new issue