Merge "[doc] Run docker registry with host network"

This commit is contained in:
Zuul 2022-09-13 13:41:15 +00:00 committed by Gerrit Code Review
commit 81d4d26279
1 changed files with 3 additions and 2 deletions

View File

@ -20,14 +20,15 @@ A very simple registry may be deployed on the current host as follows:
.. code-block:: console
docker run -d \
--network host \
--name registry \
--restart=always \
-p 4000:5000 \
-e REGISTRY_HTTP_ADDR=0.0.0.0:4000 \
-v registry:/var/lib/registry \
registry:2
Here we are using port 4000 to avoid a conflict with Keystone. If the registry
is not running on the same host as Keystone, the ``-p`` argument may be
is not running on the same host as Keystone, the ``-e`` argument may be
omitted.
Edit ``globals.yml`` and add the following, where ``192.168.1.100:4000`` is the