Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbreak containers without images #22

Merged
merged 1 commit into from
Mar 24, 2017
Merged

Conversation

nalind
Copy link
Member

@nalind nalind commented Jan 27, 2017

Make it possible to create a container without using an underlying image.

storage/store.go Outdated
@@ -1369,7 +1375,9 @@ func (s *store) DeleteImage(id string, commit bool) (layers []string, err error)
}
aContainerByImage := make(map[string]string)
for _, container := range containers {
aContainerByImage[container.ImageID] = container.ID
if container.ImageID != "" {
aContainerByImage[container.ImageID] = container.ID
Copy link
Member

Choose a reason for hiding this comment

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

Is it ok if this is not set? Or should it cause an error?

Copy link
Member

Choose a reason for hiding this comment

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

Otherwise LGTM

Copy link
Member Author

Choose a reason for hiding this comment

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

It should be fine if it's not set, but now that you mention it, this doesn't seem necessary to make this case work. I'll drop it.

Make it possible to create a container without using an underlying
image.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Mar 24, 2017

👍

@nalind
Copy link
Member Author

nalind commented Mar 24, 2017

Thanks, merging.

@nalind nalind merged commit 20a7e35 into containers:master Mar 24, 2017
@nalind nalind deleted the noimage branch March 24, 2017 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants