diff options
| author | Laura Brehm <laurabrehm@hey.com> | 2023-03-23 11:32:59 +0000 |
|---|---|---|
| committer | Laura Brehm <laurabrehm@hey.com> | 2023-03-30 10:29:07 +0100 |
| commit | 4c459ddabde25ab72eaf68f7f22fff1cffc77730 (patch) | |
| tree | df42ec6899d4b46985bb6422fabd5c6f90965156 /api/server | |
| parent | e85c69e1b766b2fb58c4b797ce1cc1e9eb4e3ca8 (diff) | |
| download | docker-4c459ddabde25ab72eaf68f7f22fff1cffc77730.tar.gz | |
c8d: add support for `docker diff`
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/container_routes.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 0c53282b38..f86827b891 100644 --- a/api/server/router/container/backend.go +++ b/api/server/router/container/backend.go @@ -48,7 +48,7 @@ type stateBackend interface { // monitorBackend includes functions to implement to provide containers monitoring functionality. type monitorBackend interface { - ContainerChanges(name string) ([]archive.Change, error) + ContainerChanges(ctx context.Context, name string) ([]archive.Change, 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 diff --git a/api/server/router/container/container_routes.go b/api/server/router/container/container_routes.go index 5f4b63a1d2..6bae7e9c3b 100644 --- a/api/server/router/container/container_routes.go +++ b/api/server/router/container/container_routes.go @@ -401,7 +401,7 @@ func (s *containerRouter) postContainersWait(ctx context.Context, w http.Respons } func (s *containerRouter) getContainersChanges(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error { - changes, err := s.backend.ContainerChanges(vars["name"]) + changes, err := s.backend.ContainerChanges(ctx, vars["name"]) if err != nil { return err } |
