浏览代码

Merge pull request #15174 from Microsoft/10662-top

Windows: Top (non-)implementation
Phil Estes 10 年之前
父节点
当前提交
044b56e94f
共有 2 个文件被更改,包括 13 次插入0 次删除
  1. 2 0
      daemon/top_unix.go
  2. 11 0
      daemon/top_windows.go

+ 2 - 0
daemon/top.go → daemon/top_unix.go

@@ -1,3 +1,5 @@
+//+build !windows
+
 package daemon
 
 import (

+ 11 - 0
daemon/top_windows.go

@@ -0,0 +1,11 @@
+package daemon
+
+import (
+	"fmt"
+
+	"github.com/docker/docker/api/types"
+)
+
+func (daemon *Daemon) ContainerTop(name string, psArgs string) (*types.ContainerProcessList, error) {
+	return nil, fmt.Errorf("Top is not supported on Windows")
+}