6

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.

Raghuveer
  • 1,413
  • 3
  • 23
  • 39

1 Answers1

5

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

P.S. There is similar question.

Community
  • 1
  • 1
ISanych
  • 21,590
  • 4
  • 32
  • 52