Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access control for private docker registry

is there a way to access control for push and pull for private docker registry ?

I have a machine where I am running a private docker registry like this

sudo yum install python-devel libevent-devel python-pip gcc xz-devel
sudo python-pip install docker-registry[bugsnag]
gunicorn --access-logfile - --debug -k gevent -b 0.0.0.0:5000 -w 1 docker_registry.wsgi:application

I have taken this from the github of docker registry under Run the Registry section.

This works fine but then anybody can pull and push to this. I would like to restrict the control of who can pull/push to registry.

Is there a way to do it ?

Appreciate your response.

like image 367
Raghuveer Avatar asked Sep 30 '22 11:09

Raghuveer


1 Answers

You could use any web server with authentication before registry. Here the sample with ngnix.

P.S. There is similar question.

like image 198
ISanych Avatar answered Oct 04 '22 04:10

ISanych