diff --git a/container_test.go b/container_test.go index c102b13c2..cbae4e67c 100644 --- a/container_test.go +++ b/container_test.go @@ -1309,6 +1309,9 @@ func TestDeleteContainerExecCreated(t *testing.T) { } func TestContainerMetrics(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("metrics are currently not supported on windows") + } t.Parallel() client, err := newClient(t, address) diff --git a/windows/task.go b/windows/task.go index 33e5b7041..2fa85eb0a 100644 --- a/windows/task.go +++ b/windows/task.go @@ -270,6 +270,10 @@ func (t *task) Process(ctx context.Context, id string) (p runtime.Process, err e return p, err } +func (t *task) Metrics(ctx context.Context) (interface{}, error) { + return nil, errors.Wrap(errdefs.ErrUnavailable, "not supported") +} + func (t *task) newProcess(ctx context.Context, id string, conf *hcsshim.ProcessConfig, pset *pipeSet) (*process, error) { var ( err error