/registry

Configure and Deploy a docker registry server

Primary LanguageShell

Docker Registry

Setup

  • Grant execute permission
    $ sudo chmod a+x ./*.sh
  • Native basic auth
    $ ./auth.sh testuser testpassword
  • Get a certificate
    $ ./cert.sh [domain]
  • Start the registry
    $ ./start.sh
    Or
    $ docker-compose up
    Or (http)
    $ docker-compose -f docker-compose.http.yml up

Test

  • Login, Tag, Push image
    $ docker login localhost:5000    # username: testuser | password: testpassword
    $ docker pull hello-world
    $ docker tag hello-world:latest localhost:5000/hello-world:1.0
    $ docker push localhost:5000/hello-world:1.0
  • Registry API
    https://localhost/v2/_catalog
    https://localhost/v2/memcached/tags/list
    
  • Registry Frontend
    https://localhost:5001    # username: testuser | password: testpassword
    image