mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
handle -dev
This commit is contained in:
parent
39ff542142
commit
0afed3eded
1 changed files with 1 additions and 1 deletions
|
@ -436,7 +436,7 @@ func (cli *DockerCli) CmdVersion(args ...string) error {
|
|||
release := utils.GetReleaseVersion()
|
||||
if release != "" {
|
||||
fmt.Fprintf(cli.out, "Last stable version: %s", release)
|
||||
if VERSION != release || out.Version != release {
|
||||
if strings.Trim(VERSION, "-dev") != release || strings.Trim(out.Version, "-dev") != release {
|
||||
fmt.Fprintf(cli.out, ", please update docker")
|
||||
}
|
||||
fmt.Fprintf(cli.out, "\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue