diff --git a/daemon/top.go b/daemon/top_unix.go similarity index 98% rename from daemon/top.go rename to daemon/top_unix.go index 30a7893add..14d884f2c7 100644 --- a/daemon/top.go +++ b/daemon/top_unix.go @@ -1,3 +1,5 @@ +//+build !windows + package daemon import ( diff --git a/daemon/top_windows.go b/daemon/top_windows.go new file mode 100644 index 0000000000..89285f084a --- /dev/null +++ b/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") +}