Dear Michael,
You made the same mistake as myself as I started with docker. Do NOT compare Maven and Docker. This will not work.
In Docker you have one Registry which is something like a Repository in Maven.
Within this registry you have multiple Repositories which is some sort of a GroupID in Maven
Under this GroupID you have your docker images and versions.
Because you have to address each container with its registry url you end up in Artifacts like
your.private-registry.com/projectname/imagename:imageversion
To be honest I am not aware of the docker support within nexus. We are using a different product for this but this mechanic should be the same.
If something is hosted in dockerhub you don’t need to add the registry which means with registry it looks into this registry and without it search in dockerhub.
Best regards
Frank
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
nexus-users...@glists.sonatype.com.
To post to this group, send email to
nexus...@glists.sonatype.com.
To view this discussion on the web visit
https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/8a0f027f-ce15-4e00-85e0-b76a8163245c%40glists.sonatype.com.
For more options, visit
https://groups.google.com/a/glists.sonatype.com/d/optout.
The repository target concept from Nexus 2 was based on a Maven format specific understanding of a directory structure and therefore a path name. With Nexus 3 we are going to expand that to work in a repository format independent way using the component identifier (most likely). E.g. for a Docker image the name containing say projectA/imageX
This has not been implemented yet but is on our todo list. If you have any specific ideas or suggestions, please let us know.
Manfred
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/9e757ec7-8083-449c-a47e-e71f7d8e7d99%40glists.sonatype.com.
I think the major Problem is located within the docker api itself.
While pushing or pulling the docker daemon connects to host:port/v2 without any option to add subdirectories or something like this.
That is the reason why you have to add the ports. There are tools out there that can handle you request but they are not free (and because this is the nexus mailing list, I will not encourage you to change)
Nexus is currently a milestone release which means that it might be changes. Regarding you problem while authenticating I would strongly suggest not do drive such an auth structure because of the nature of docker.
The biggest advantage is the layering. You can easily use existing layers and put you changes on top of them without changing the below layers. That means if a project already have layers that you also need, you will share them (public layers will also be put into your private repository while pushing you own layer).
We are working for multiple clients and decided to let each developer access each other artifact as it might happen that a developer changes projects or may be able to reuse some existing artifacts.
But that is only our approach. If you really need the feature to encapsulate the project artifacts, you will need to create the multiple repositories using different ports and use auth on them. Also you have to create a dockercfg entry for each repository you will handle as for docker the repository private.repo.com:2432 is different that private.repo.com:8573 (for instance)
I am sorry but it seems that you currently have to decide which devil you want: Opening many ports in firewall or having all artifacts available.
Maybe it is the right way to file a change request within Sonatype Support.
Best regards
Frank
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/9f1b9e4e-d045-4d86-9c7b-3c988baaff71%40glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/a912a859-df21-4a0c-af0b-4c2d9f2d93a8%40glists.sonatype.com.
Mike
Will sonatype create a step by step installation to use nexus 3 with docker?
from openssl steps :)
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/CAOeeQyq5tOYS-CJfM49WX-q%3DqeMq6BHnFrGZTfTa9Lx401C2_w%40mail.gmail.com.