mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c932667cd2
- Remove redundant chars and all errors caused by RST->MD conversion. e.g. [/#, /\, \<, />, etc.] - Fix broken inter-document links - Fix outbound links no-longer active or changed - Fix lists - Fix code blocks - Correct apostrophes - Replace redundant inline note marks for code with code marks - Fix broken image links - Remove non-functional title links - Correct broken cross-docs links - Improve readability Note: This PR does not try to fix/amend: - Grammatical errors - Lexical errors - Linguistic-logic errors etc. It just aims to fix main structural or conversion errors to serve as a base for further amendments that will cover others including but not limited to those mentioned above. Docker-DCO-1.1-Signed-off-by: O.S. Tezer <ostezer@gmail.com> (github: ostezer) Update: - Fix backtick issues Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
35 lines
1.3 KiB
Markdown
35 lines
1.3 KiB
Markdown
page_title: Repository
|
|
page_description: Definition of an Repository
|
|
page_keywords: containers, lxc, concepts, explanation, image, repository, container
|
|
|
|
# Repository
|
|
|
|
## Introduction
|
|
|
|
A repository is a set of images either on your local Docker server, or
|
|
shared, by pushing it to a [*Registry*](../registry/#registry-def)
|
|
server.
|
|
|
|
Images can be associated with a repository (or multiple) by giving them
|
|
an image name using one of three different commands:
|
|
|
|
1. At build time (e.g. `sudo docker build -t IMAGENAME`),
|
|
2. When committing a container (e.g.
|
|
`sudo docker commit CONTAINERID IMAGENAME`) or
|
|
3. When tagging an image id with an image name (e.g.
|
|
`sudo docker tag IMAGEID IMAGENAME`).
|
|
|
|
A Fully Qualified Image Name (FQIN) can be made up of 3 parts:
|
|
|
|
`[registry_hostname[:port]/][user_name/](repository_name:version_tag)`
|
|
|
|
`username` and `registry_hostname` default to an empty string. When
|
|
`registry_hostname` is an empty string, then `docker push` will push to
|
|
`index.docker.io:80`.
|
|
|
|
If you create a new repository which you want to share, you will need to
|
|
set at least the `user_name`, as the `default` blank `user_name` prefix is
|
|
reserved for official Docker images.
|
|
|
|
For more information see [*Working with Repositories*](
|
|
../use/workingwithrepository/#working-with-the-repository)
|