images: Pass context to commit related operations

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Nicolas De Loof
2023-01-12 15:14:12 +01:00
committed by Paweł Gronowski
parent 868c897ad7
commit 9b5c21309b
8 changed files with 21 additions and 15 deletions

View File

@@ -155,7 +155,7 @@ func (daemon *Daemon) CreateImageFromContainer(ctx context.Context, name string,
return "", err
}
id, err := daemon.imageService.CommitImage(backend.CommitConfig{
id, err := daemon.imageService.CommitImage(ctx, backend.CommitConfig{
Author: c.Author,
Comment: c.Comment,
Config: newConfig,