Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly is a Docker repository?

I can't seem to find a definition of exactly what is a Docker repository. The general approach to labelling seems to be username/imagename.

Of course, it contains Docker images BUT do they need to be different versions of the same image or can they be different Docker images?

For example, could I keep App1, App2, ... in the same Docker repository and just use labels to distinguish them.

like image 886
Ashley Aitken Avatar asked Dec 28 '14 14:12

Ashley Aitken


1 Answers

By convention the Docker images are named as <owner>/<application>:<tag>. There is not any technical restriction if you want to keep different applications under the same repository (i.e.: there doesn't has to be related different tags unless you force that relation), and you can have, for example, mycompany/myuser:app1 and mycompany/myuser:app2. But this is not the way you will found most of the public images which are tagged as I indicated before.

like image 141
Javier Cortejoso Avatar answered Sep 18 '22 21:09

Javier Cortejoso