Reputation: 1182
Can I store completely different images in single Docker repository just by using different tags?
e.g username/myrepo:software
, username/myrepo:code
If so, how?
Upvotes: 3
Views: 267
Reputation: 9946
Yes. The tags are of the form [url]/[user]/image[:tag]. If you can authenticate as 'user' at 'url' you can store any number of repos there with any number of tags.
In the usual case, your 'code' and 'software' tags will be related in some way, say by having a common ancestor, but there's nothing that enforces that rule.
Upvotes: 2