diff options
| author | Sebastiaan van Stijn <thaJeztah@users.noreply.github.com> | 2023-03-10 18:59:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-10 18:59:33 +0100 |
| commit | 2fa66cfce2523f6e38bcccc1161055b46c3c6a90 (patch) | |
| tree | 45cebe982853fc5666ccdacfc8d2a67766e0f26f /api/server | |
| parent | a1f6a705225eedcb55fe6dac7dec0b9870330d78 (diff) | |
| parent | 06619763a25b3f651c198baaebbd5f01a2315976 (diff) | |
| download | docker-2fa66cfce2523f6e38bcccc1161055b46c3c6a90.tar.gz | |
Merge pull request #45116 from thaJeztah/c8d_GetLayerByID
remove GetLayerByID from ImageService interface
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 eea44d8b7a..0c53282b38 100644 --- a/api/server/router/container/backend.go +++ b/api/server/router/container/backend.go @@ -25,7 +25,7 @@ type execBackend interface { type copyBackend interface { ContainerArchivePath(name string, path string) (content io.ReadCloser, stat *types.ContainerPathStat, err error) ContainerCopy(name string, res string) (io.ReadCloser, error) - ContainerExport(name string, out io.Writer) error + ContainerExport(ctx context.Context, name string, out io.Writer) error ContainerExtractToDir(name, path string, copyUIDGID, noOverwriteDirNonDir bool, content io.Reader) error ContainerStatPath(name string, path string) (stat *types.ContainerPathStat, err error) } diff --git a/api/server/router/container/container_routes.go b/api/server/router/container/container_routes.go index 9436ab46d8..5f4b63a1d2 100644 --- a/api/server/router/container/container_routes.go +++ b/api/server/router/container/container_routes.go @@ -174,7 +174,7 @@ func (s *containerRouter) getContainersLogs(ctx context.Context, w http.Response } func (s *containerRouter) getContainersExport(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error { - return s.backend.ContainerExport(vars["name"], w) + return s.backend.ContainerExport(ctx, vars["name"], w) } type bodyOnStartError struct{} |
