|
@@ -183,10 +183,14 @@ func (srv *Server) CmdWait(stdin io.ReadCloser, stdout io.Writer, args ...string
|
|
|
|
|
|
// 'docker version': show version information
|
|
// 'docker version': show version information
|
|
func (srv *Server) CmdVersion(stdin io.ReadCloser, stdout io.Writer, args ...string) error {
|
|
func (srv *Server) CmdVersion(stdin io.ReadCloser, stdout io.Writer, args ...string) error {
|
|
- fmt.Fprintf(stdout, "Version:%s\n", VERSION)
|
|
|
|
- fmt.Fprintf(stdout, "Git Commit:%s\n", GIT_COMMIT)
|
|
|
|
- if NO_MEMORY_LIMIT {
|
|
|
|
- fmt.Fprintf(stdout, "Memory limit disabled\n")
|
|
|
|
|
|
+ fmt.Fprintf(stdout, "Version: %s\n", VERSION)
|
|
|
|
+ fmt.Fprintf(stdout, "Git Commit: %s\n", GIT_COMMIT)
|
|
|
|
+ fmt.Fprintf(stdout, "Kernel: %s\n", srv.runtime.kernelVersion)
|
|
|
|
+ if !srv.runtime.capabilities.MemoryLimit {
|
|
|
|
+ fmt.Fprintf(stdout, "WARNING: No memory limit support\n")
|
|
|
|
+ }
|
|
|
|
+ if !srv.runtime.capabilities.SwapLimit {
|
|
|
|
+ fmt.Fprintf(stdout, "WARNING: No swap limit support\n")
|
|
}
|
|
}
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|