Windows: Minimal docker top implementation
Signed-off-by: John Howard <jhoward@microsoft.com> Upstream-commit: 52237787fa82c12b018d71b1e00f28492be35dad Component: engine
This commit is contained in:
@ -299,6 +299,12 @@ func (clnt *client) GetPidsForContainer(containerID string) ([]int, error) {
|
||||
return pids, nil
|
||||
}
|
||||
|
||||
// Summary returns a summary of the processes running in a container.
|
||||
// This is a no-op on Linux.
|
||||
func (clnt *client) Summary(containerID string) ([]Summary, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (clnt *client) getContainerdContainer(containerID string) (*containerd.Container, error) {
|
||||
resp, err := clnt.remote.apiClient.State(context.Background(), &containerd.StateRequest{Id: containerID})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user