diff options
author | Laura Brehm <laurabrehm@hey.com> | 2023-03-06 16:02:37 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2023-03-08 00:58:02 +0100 |
commit | 45ee4d7c78d4d128366f372c4657911880571528 (patch) | |
tree | 948216ba25b824c9116362d7343d746b5cddc8e6 /api/server | |
parent | 6f719c74a9ef01d4a48df9b16e20329f8908fa2d (diff) | |
download | docker-45ee4d7c78d4d128366f372c4657911880571528.tar.gz |
c8d: Compute container's layer size
Co-authored-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
Diffstat (limited to 'api/server')
-rw-r--r-- | api/server/router/container/backend.go | 2 | ||||
-rw-r--r-- | api/server/router/container/inspect.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/server/router/container/backend.go b/api/server/router/container/backend.go index f0624eef83..eea44d8b7a 100644 --- a/api/server/router/container/backend.go +++ b/api/server/router/container/backend.go @@ -49,7 +49,7 @@ type stateBackend interface { // monitorBackend includes functions to implement to provide containers monitoring functionality. type monitorBackend interface { ContainerChanges(name string) ([]archive.Change, error) - ContainerInspect(name string, size bool, version string) (interface{}, error) + ContainerInspect(ctx context.Context, name string, size bool, version string) (interface{}, error) ContainerLogs(ctx context.Context, name string, config *types.ContainerLogsOptions) (msgs <-chan *backend.LogMessage, tty bool, err error) ContainerStats(ctx context.Context, name string, config *backend.ContainerStatsConfig) error ContainerTop(name string, psArgs string) (*container.ContainerTopOKBody, error) diff --git a/api/server/router/container/inspect.go b/api/server/router/container/inspect.go index 5c78d15bc9..c905c969b8 100644 --- a/api/server/router/container/inspect.go +++ b/api/server/router/container/inspect.go @@ -12,7 +12,7 @@ func (s *containerRouter) getContainersByName(ctx context.Context, w http.Respon displaySize := httputils.BoolValue(r, "size") version := httputils.VersionFromContext(ctx) - json, err := s.backend.ContainerInspect(vars["name"], displaySize, version) + json, err := s.backend.ContainerInspect(ctx, vars["name"], displaySize, version) if err != nil { return err } |