variable.rst 741 B

123456789101112131415161718192021222324252627
  1. :title: Index Environment Variable
  2. :description: Setting this environment variable on the docker server will change the URL docker index.
  3. :keywords: docker, index environment variable, documentation
  4. =================================
  5. Docker Index Environment Variable
  6. =================================
  7. Variable
  8. --------
  9. .. code-block:: sh
  10. DOCKER_INDEX_URL
  11. Setting this environment variable on the docker server will change the URL docker index.
  12. This address is used in commands such as ``docker login``, ``docker push`` and ``docker pull``.
  13. The docker daemon doesn't need to be restarted for this parameter to take effect.
  14. Example
  15. -------
  16. .. code-block:: sh
  17. docker -d &
  18. export DOCKER_INDEX_URL="https://index.docker.io"