|
@@ -7,9 +7,9 @@
|
|
Share Images via Repositories
|
|
Share Images via Repositories
|
|
=============================
|
|
=============================
|
|
|
|
|
|
-A *repository* is a hosted collection of tagged :ref:`images
|
|
|
|
-<image_def>` that together create the file system for a container. The
|
|
|
|
-repository's name is a tag that indicates the provenance of the
|
|
|
|
|
|
+A *repository* is a shareable collection of tagged :ref:`images<image_def>`
|
|
|
|
+that together create the file systems for containers. The
|
|
|
|
+repository's name is a label that indicates the provenance of the
|
|
repository, i.e. who created it and where the original copy is
|
|
repository, i.e. who created it and where the original copy is
|
|
located.
|
|
located.
|
|
|
|
|
|
@@ -19,7 +19,7 @@ tag. The implicit registry is located at ``index.docker.io``, the home
|
|
of "top-level" repositories and the Central Index. This registry may
|
|
of "top-level" repositories and the Central Index. This registry may
|
|
also include public "user" repositories.
|
|
also include public "user" repositories.
|
|
|
|
|
|
-So Docker is not only a tool for creating and managing your own
|
|
|
|
|
|
+Docker is not only a tool for creating and managing your own
|
|
:ref:`containers <container_def>` -- **Docker is also a tool for
|
|
:ref:`containers <container_def>` -- **Docker is also a tool for
|
|
sharing**. The Docker project provides a Central Registry to host
|
|
sharing**. The Docker project provides a Central Registry to host
|
|
public repositories, namespaced by user, and a Central Index which
|
|
public repositories, namespaced by user, and a Central Index which
|
|
@@ -28,6 +28,12 @@ repositories. You can host your own Registry too! Docker acts as a
|
|
client for these services via ``docker search, pull, login`` and
|
|
client for these services via ``docker search, pull, login`` and
|
|
``push``.
|
|
``push``.
|
|
|
|
|
|
|
|
+Local Repositories
|
|
|
|
+------------------
|
|
|
|
+
|
|
|
|
+Docker images which have been created and labeled on your local Docker server
|
|
|
|
+need to be pushed to a Public or Private registry to be shared.
|
|
|
|
+
|
|
.. _using_public_repositories:
|
|
.. _using_public_repositories:
|
|
|
|
|
|
Public Repositories
|
|
Public Repositories
|
|
@@ -58,8 +64,8 @@ Find Public Images on the Central Index
|
|
---------------------------------------
|
|
---------------------------------------
|
|
|
|
|
|
You can search the Central Index `online <https://index.docker.io>`_
|
|
You can search the Central Index `online <https://index.docker.io>`_
|
|
-or by the CLI. Searching can find images by name, user name or
|
|
|
|
-description:
|
|
|
|
|
|
+or using the command line interface. Searching can find images by name, user
|
|
|
|
+name or description:
|
|
|
|
|
|
.. code-block:: bash
|
|
.. code-block:: bash
|
|
|
|
|
|
@@ -136,13 +142,13 @@ name for the image.
|
|
|
|
|
|
.. _image_push:
|
|
.. _image_push:
|
|
|
|
|
|
-Pushing an image to its repository
|
|
|
|
-----------------------------------
|
|
|
|
|
|
+Pushing a repository to its registry
|
|
|
|
+------------------------------------
|
|
|
|
|
|
-In order to push an image to its repository you need to have committed
|
|
|
|
-your container to a named image (see above)
|
|
|
|
|
|
+In order to push an repository to its registry you need to have named an image,
|
|
|
|
+or committed your container to a named image (see above)
|
|
|
|
|
|
-Now you can commit this image to the repository designated by its name
|
|
|
|
|
|
+Now you can push this repository to the registry designated by its name
|
|
or tag.
|
|
or tag.
|
|
|
|
|
|
.. code-block:: bash
|
|
.. code-block:: bash
|
|
@@ -156,7 +162,7 @@ Trusted Builds
|
|
--------------
|
|
--------------
|
|
|
|
|
|
Trusted Builds automate the building and updating of images from GitHub, directly
|
|
Trusted Builds automate the building and updating of images from GitHub, directly
|
|
-on docker.io servers. It works by adding a commit hook to your selected repository,
|
|
|
|
|
|
+on ``docker.io`` servers. It works by adding a commit hook to your selected repository,
|
|
triggering a build and update when you push a commit.
|
|
triggering a build and update when you push a commit.
|
|
|
|
|
|
To setup a trusted build
|
|
To setup a trusted build
|
|
@@ -180,21 +186,22 @@ If you want to see the status of your Trusted Builds you can go to your
|
|
`Trusted Builds page <https://index.docker.io/builds/>`_ on the Docker index,
|
|
`Trusted Builds page <https://index.docker.io/builds/>`_ on the Docker index,
|
|
and it will show you the status of your builds, and the build history.
|
|
and it will show you the status of your builds, and the build history.
|
|
|
|
|
|
-Once you've created a Trusted Build you can deactive or delete it. You cannot
|
|
|
|
|
|
+Once you've created a Trusted Build you can deactivate or delete it. You cannot
|
|
however push to a Trusted Build with the ``docker push`` command. You can only
|
|
however push to a Trusted Build with the ``docker push`` command. You can only
|
|
manage it by committing code to your GitHub repository.
|
|
manage it by committing code to your GitHub repository.
|
|
|
|
|
|
You can create multiple Trusted Builds per repository and configure them to
|
|
You can create multiple Trusted Builds per repository and configure them to
|
|
point to specific ``Dockerfile``'s or Git branches.
|
|
point to specific ``Dockerfile``'s or Git branches.
|
|
|
|
|
|
-Private Repositories
|
|
|
|
---------------------
|
|
|
|
|
|
+Private Registry
|
|
|
|
+----------------
|
|
|
|
|
|
-Right now (version 0.6), private repositories are only possible by
|
|
|
|
-hosting `your own registry
|
|
|
|
|
|
+Private registries and private shared repositories are
|
|
|
|
+only possible by hosting `your own registry
|
|
<https://github.com/dotcloud/docker-registry>`_. To push or pull to a
|
|
<https://github.com/dotcloud/docker-registry>`_. To push or pull to a
|
|
repository on your own registry, you must prefix the tag with the
|
|
repository on your own registry, you must prefix the tag with the
|
|
-address of the registry's host, like this:
|
|
|
|
|
|
+address of the registry's host (a ``.`` or ``:`` is used to identify a host),
|
|
|
|
+like this:
|
|
|
|
|
|
.. code-block:: bash
|
|
.. code-block:: bash
|
|
|
|
|