...

Text file src/github.com/docker/distribution/contrib/apache/README.MD

Documentation: github.com/docker/distribution/contrib/apache

     1# Apache HTTPd sample for Registry v1, v2 and mirror
     2
     33 containers involved 
     4
     5* Docker Registry v1 (registry 0.9.1)
     6* Docker Registry v2 (registry 2.0.0)
     7* Docker Registry v1 in mirror mode
     8
     9HTTP for mirror and HTTPS for v1 & v2
    10
    11* http://registry.example.com proxify Docker Registry 1.0 in Mirror mode
    12* https://registry.example.com proxify Docker Registry 1.0 or 2.0 in Hosting mode
    13
    14## 3 Docker containers should be started 
    15
    16* Docker Registry 1.0 in Mirror mode : port 5001
    17* Docker Registry 1.0 in Hosting mode : port 5000
    18* Docker Registry 2.0 in Hosting mode : port 5002
    19
    20### Registry v1
    21
    22    docker run -d -e SETTINGS_FLAVOR=dev -v /var/lib/docker-registry/storage/hosting-v1:/tmp -p 5000:5000 registry:0.9.1"
    23
    24### Mirror
    25
    26    docker run -d -e SETTINGS_FLAVOR=dev -e STANDALONE=false -e MIRROR_SOURCE=https://registry-1.docker.io -e MIRROR_SOURCE_INDEX=https://index.docker.io \
    27                  -e MIRROR_TAGS_CACHE_TTL=172800 -v /var/lib/docker-registry/storage/mirror:/tmp -p 5001:5000 registry:0.9.1"
    28
    29### Registry v2
    30
    31    docker run -d -e SETTINGS_FLAVOR=dev -v /var/lib/axway/docker-registry/storage/hosting2-v2:/tmp -p 5002:5000 registry:2"
    32
    33# For Hosting mode access
    34
    35* users should have account (valid-user) to be able to fetch images
    36* only users using account docker-deployer will be allowed to push images

View as plain text