sonatype / nexus-public

Sonatype Nexus Repository Open-source codebase mirror
https://www.sonatype.com/products/repository-oss-download
Eclipse Public License 1.0
1.83k stars 557 forks source link

docker proxy anonymous access 401 #410

Closed Rabbit-st closed 1 day ago

Rabbit-st commented 2 weeks ago

nexus3 version: 3.69.0-02 system: docker run sonatype/nexus3

  1. anonymous rule privileges: nx-repository-view-docker-*-*
  2. Realms has also been configured Docker Bearer Token Realm
  3. docker proxy checked Allow anonymous docker pull ( Docker Bearer Token Realm required )

Anonymous access or prompt 401, what else do I need to configure?

Rabbit-st commented 2 weeks ago

The same configuration is available in version 3.38.1. Is there anything new in version 3.69?

nblair commented 2 weeks ago

Hi @Rabbit-st thanks for opening an issue. Configuring anonymous access with docker repositories can be tricky, as docker clients do some pretty unexpected things. Can you confirm you've followed the steps listed in https://help.sonatype.com/en/docker-authentication.html?

Rabbit-st commented 5 days ago

Hi @Rabbit-st thanks for opening an issue. Configuring anonymous access with docker repositories can be tricky, as docker clients do some pretty unexpected things. Can you confirm you've followed the steps listed in https://help.sonatype.com/en/docker-authentication.html?

Yes, I followed the steps in the provided documentation to configure anonymous access, but it still doesn't work with version 3.69.0. However, anonymous access works with version 3.38.1.

Rabbit-st commented 1 day ago

Sorry, after reinstalling Nexus 3, anonymous access is now working.