Automate creation of docker hosted registry in Nexus

How do i automate creation of docker hosted registry in nexus . I have looked for several apis but havent found any with respect to docker registry.Is is possible to do so?

At the moment you will have to use the script API in order to implement your requirement!

I already implemented something that also covers your requirement mayb -

You can also checkout the CLI I build for nexus 3 which covers also the access control part:

How do we run this groovy file??Could you please provide the curl post call for running this script along with the parameters it needs?

FYI, the REST equivalents are being developed. You can follow for more.

The groovy can be run using an execute script schedule task via the UI or (perhaps ironically) using the REST API (see The swagger UI should be able to guide through REST.