Skip to content

Move to a single tag-store#34568

Merged
johnstep merged 1 commit intomoby:masterfrom
microsoft:jjh/singletagstore
Aug 23, 2017
Merged

Move to a single tag-store#34568
johnstep merged 1 commit intomoby:masterfrom
microsoft:jjh/singletagstore

Conversation

@lowenna
Copy link
Member

@lowenna lowenna commented Aug 19, 2017

Signed-off-by: John Howard jhoward@microsoft.com

@tonistiigi @stevvooe @dmcgowan @mlaventure As per offline discussion (larger doc to follow, but this is one of the easier non-contentious pieces), this restructures the daemon back to how it was so that the reference (tag) store is global. This means that once the Windows daemon is able to run in dual LCOW/WCOW mode again, it will not be possible to have image:tag as both a Windows and a Linux image.

@lowenna
Copy link
Member Author

lowenna commented Aug 19, 2017

@johnstep too :)

Signed-off-by: John Howard <jhoward@microsoft.com>
@lowenna lowenna force-pushed the jjh/singletagstore branch from 00aef75 to 7b9a8f4 Compare August 19, 2017 00:09
Copy link
Contributor

@mlaventure mlaventure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

imagePlatform := runtime.GOOS
id := image.IDFromDigest(digest)
for platform := range daemon.stores {
if img, err := daemon.stores[platform].imageStore.Get(id); err == nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imageStore does not need to be duplicated either as it only contains the config json. Only layerStore is platform specific.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tonistiigi Sure, let me capture that in the document as the follow-up to last week (almost complete and ready to share for discussion - delayed as OOF) and do as a follow-up PR.

@tonistiigi
Copy link
Member

LGTM

Copy link
Member

@johnstep johnstep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johnstep johnstep merged commit 3d22dae into moby:master Aug 23, 2017
@lowenna lowenna deleted the jjh/singletagstore branch August 23, 2017 00:51
@thaJeztah thaJeztah added area/distribution Image Distribution area/images Image Distribution labels Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/distribution Image Distribution area/images Image Distribution status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants