Connect and do things with the gitlab registry
use Docker::Registry::Gitlab; my $registry = Docker::Registry::Gitlab->new( username => 'foo', access_token => 'bar', # your private token at gitlab );
The endpoint of the registry, defaults to 'https://registry.gitlab.com'.
Your username at gitlab
The access token you get from gitlab with 'read_registry' access.
The repository you want to query.
The endpoint to request the JWT token from, if none supplied the default of Docker::Registry::Auth::Gitlab will be used.
Unimplemented code path unless GITLAB_SCOPE is set as an environment variable.
Because Gitlab doesn't support wild cards in scopes (yet!), you are not able to call certain functions. "repositories" in Docker::Registry::Gitlab being one of them. For more information see: https://gitlab.com/gitlab-org/gitlab-ce/issues/47497
Docker::Registry::Auth::Gitlab and Docker::Registry::V2.
To install Docker::Registry, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Docker::Registry
CPAN shell
perl -MCPAN -e shell install Docker::Registry
For more information on module installation, please visit the detailed CPAN module installation guide.