mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Move all daemon image methods into imageService
imageService provides the backend for the image API and handles the imageStore, and referenceStore. Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
committed by
Daniel Nephin
parent
600475715e
commit
0dab53ff3c
@@ -155,7 +155,7 @@ func (daemon *Daemon) CreateImageFromContainer(name string, c *backend.CreateIma
|
||||
return "", err
|
||||
}
|
||||
|
||||
id, err := daemon.commitImage(backend.CommitConfig{
|
||||
id, err := daemon.imageService.CommitImage(backend.CommitConfig{
|
||||
Author: c.Author,
|
||||
Comment: c.Comment,
|
||||
Config: newConfig,
|
||||
@@ -171,7 +171,7 @@ func (daemon *Daemon) CreateImageFromContainer(name string, c *backend.CreateIma
|
||||
|
||||
var imageRef string
|
||||
if c.Repo != "" {
|
||||
imageRef, err = daemon.TagImage(string(id), c.Repo, c.Tag)
|
||||
imageRef, err = daemon.imageService.TagImage(string(id), c.Repo, c.Tag)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user