To support more than one private registry:v2 on the same host requires each registry to use a different port number ($REGISTRY_PORT). The $REGISTRY_PORT number will be used in the directory path name that stores the images for each private registry. By using the port number in the directory path, each registry path will be different. Each registry can store its' certification keys in the directory /usr/local/docker-registry-$REGISTRY_PORT/registry-certs.
Support PERSISTENT_REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY as an environment variable that may or may not be defined by a user to a file system root directory to store images (example: /usr/local, default if not defined /usr/local). Images will be stored in the following directory: $PERSISTENT_REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY"/docker-registry-$REGISTRY_PORT/docker
Support two command line arguments:
ARG1=Private registry port number (default 5000)
ARG2=Search private registry for ARG2 (example: prod, dev, tag-name, date, or anything, default none)
example usage:
Search default registry in /usr/local with default port 5000. $REGISTRY_PORT and $PERSISTENT_REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY are not defined
view-private-registry
Search default registry in /usr/local with non-default port defined at 17313 in environment variable $REGISTRY_PORT
REGISTRY_PORT=17313
view-private-registry
To support more than one private registry:v2 on the same host requires each registry to use a different port number ($REGISTRY_PORT). The $REGISTRY_PORT number will be used in the directory path name that stores the images for each private registry. By using the port number in the directory path, each registry path will be different. Each registry can store its' certification keys in the directory /usr/local/docker-registry-$REGISTRY_PORT/registry-certs.
Support PERSISTENT_REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY as an environment variable that may or may not be defined by a user to a file system root directory to store images (example: /usr/local, default if not defined /usr/local). Images will be stored in the following directory: $PERSISTENT_REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY"/docker-registry-$REGISTRY_PORT/docker
Support two command line arguments: ARG1=Private registry port number (default 5000) ARG2=Search private registry for ARG2 (example: prod, dev, tag-name, date, or anything, default none)
example usage: Search default registry in /usr/local with default port 5000. $REGISTRY_PORT and $PERSISTENT_REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY are not defined view-private-registry Search default registry in /usr/local with non-default port defined at 17313 in environment variable $REGISTRY_PORT REGISTRY_PORT=17313 view-private-registry