mirror of
https://github.com/docker/cli.git
synced 2026-09-09 10:05:21 -05:00
Merge pull request #13773 from dmcgowan/refactor-1-image-graph-separation
refactor: separate graph from image Upstream-commit: 00b8fec75f3a113c851013e0f0d559cc6d96b84d Component: engine
This commit is contained in:
@@ -63,7 +63,7 @@ func (daemon *Daemon) Create(config *runconfig.Config, hostConfig *runconfig.Hos
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
if err = img.CheckDepth(); err != nil {
|
||||
if err = daemon.graph.CheckDepth(img); err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
imgID = img.ID
|
||||
|
||||
@@ -160,7 +160,7 @@ func (daemon *Daemon) canDeleteImage(imgID string, force bool) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := parent.WalkHistory(func(p *image.Image) error {
|
||||
if err := daemon.graph.WalkHistory(parent, func(p image.Image) error {
|
||||
if imgID == p.ID {
|
||||
if container.IsRunning() {
|
||||
if force {
|
||||
|
||||
Reference in New Issue
Block a user