Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Define image name format string. #479

Open
sgotti opened this issue Sep 1, 2015 · 7 comments
Open

Define image name format string. #479

sgotti opened this issue Sep 1, 2015 · 7 comments
Milestone

Comments

@sgotti
Copy link
Member

sgotti commented Sep 1, 2015

The image name format string is used inside appc/spec/discovery and also at least by rkt. Do you think it should be part of and defined in appc/spec? If not, the related coded should probably be moved outside.

By now it's something like this

name[,label1=value][,label2=value],...
or
name:version[,label1=value][,label2=value]

where name type is ACIdentifier, label type is ACIdentifier and label value is string.

A doubt:
Does name have to absolutely contain a domain part (for example coreos.com/etcd)? If not meta discovery will probably fail as there's not domain to ask to.

At the same time, actually docker2aci creates images from the default docker repository with names like busybox:latest.

@sgotti
Copy link
Member Author

sgotti commented Sep 1, 2015

Does name have to absolutely contain a domain part (for example coreos.com/etcd)? If not meta discovery will probably fail as there's not domain to ask to.

Partially answering to myself: the spec/aci.md says: name (string, required) [...] This is not expected to be unique (see the version label) but SHOULD have a URL-like structure to facilitate App Container Image Discovery. [...]

Since the definition of name in the image name string should be the same of the name in the image manifest looks like it's not mandatory.

@iaguis
Copy link
Member

iaguis commented Sep 14, 2015

As a side note we could change docker2aci so it generates index.docker.io/busybox:latest and it's not a special case.

@sgotti
Copy link
Member Author

sgotti commented Sep 24, 2015

Few additional thoughts:

@iaguis
Copy link
Member

iaguis commented Oct 1, 2015

Related #514

@jonboulle
Copy link
Contributor

I think we should probably just bite the bullet and put this somewhere in the spec but I'm not sure where. It's kind of an extra/suggestion. @sgotti any ideas?

@jonboulle jonboulle added this to the v0.7.2 milestone Oct 6, 2015
@jonboulle
Copy link
Contributor

also #520

@sgotti
Copy link
Member Author

sgotti commented Oct 8, 2015

@jonboulle mmm. Given that it's not a foundamental part of the spec but it's coded inside the reference go implementation and used by rkt and probably other future project perhaps something in an "extra" directory like suggested by you sounds good.

About the actual format another unresolved problem is the clash with other schemeless formats like filenames: rkt/rkt#715

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants