Skip to content

Conversation

@rhatdan
Copy link
Member

@rhatdan rhatdan commented Apr 24, 2018

Signed-off-by: Daniel J Walsh dwalsh@redhat.com

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@rhatdan
Copy link
Member Author

rhatdan commented Apr 24, 2018

This is an alternative to #448

@rhatdan rhatdan changed the title Replace docker.io as the default registry with registries[0] [WIP] Replace docker.io as the default registry with registries[0] Apr 24, 2018
@TomSweeneyRedHat
Copy link
Member

This is more in line with what I was thinking you were going to do. Looks like you've a whitespace error somewhere. I'd go forward with this and kill the earlier one.

if err != nil {
return nil, err
}
if len(registries) == 0 {
Copy link
Member

Choose a reason for hiding this comment

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

Should we default to quay.io in this case? Or fedora?

Copy link
Member Author

Choose a reason for hiding this comment

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

I really don't think the containers/image should have a default. In the perfect world we would just allow a "" as the registry.

Copy link
Collaborator

Choose a reason for hiding this comment

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

A minimal comment for now:

c/i/docker/reference.Named, !IsNameOnly, is a type representing a specific image in a specific registry.

Maybe there needs to be a type representing the “unqualified” inputs to search.

Maybe some uses of reference.Named should not use it at all, and accept more lax input. (In particular I was wrong about containers-storage:, it uses reference.ParseNormalizedNamed and does not allow hostname-less references.)

But, if hostname-qualified and hostname-less references should live side by side, they need to be distinct types. The experience, both with projectatomic/docker’s reference, and with podman’s string uses, is that mixing them together makes it all to easy to be careless about the semantics and results in surprising and unexpected corner case behaviors.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I would like you to work on the solution for this, We need to get a way to allow us to have images stored without requiring a default registry.

return nil, err
}
if len(registries) == 0 {
return nil, errors.New("no registries specified")
Copy link
Member

Choose a reason for hiding this comment

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

"no registries specified in /etc/containers/registries.conf" perhaps?

Copy link
Member Author

Choose a reason for hiding this comment

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

The problem is I am not sure if that is the path.

@rhatdan
Copy link
Member Author

rhatdan commented Apr 25, 2018

I think I prefer the original. No registry at all.

@rhatdan rhatdan closed this Apr 25, 2018
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.

3 participants