0

I'm working on a project in which I need to authenticate a user and create his repository(public) on Docker hub. I have googled a lot and explore various APIs docker offer but couldn't find any solution and example.

I need to build it in Python 3.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Abdul Rehman
  • 5,326
  • 9
  • 77
  • 150
  • What's wrong with `docker login`? – OneCricketeer Jul 06 '18 at 01:56
  • As I said above, I need to authenticate external users to create repositories for them and want to implement it via API. – Abdul Rehman Jul 06 '18 at 01:58
  • You need to get the details from them somehow. Then you just call the docker login api from python and create the repo? You can login and push from docker-py - https://docker-py.readthedocs.io/en/stable/client.html. – johnharris85 Jul 06 '18 at 02:21

0 Answers0