# Best Practices

**URL:** https://community.sonatype.com/c/nexus-repository/best-practices/55.md?page=2

[Latest](https://community.sonatype.com/latest.md) · [Categories](https://community.sonatype.com/categories.md) · [Tags](https://community.sonatype.com/tags.md)

**Page:** 3

---

## [How to delete multiple versioned package using curl?](https://community.sonatype.com/t/how-to-delete-multiple-versioned-package-using-curl/8393)

<div class="topic-metadata">

**Author:** [@palla714](https://community.sonatype.com/u/palla714)\
**Replies:** 2\
**Last updated:** [March 21, 2022, 4:03pm UTC](https://community.sonatype.com/t/how-to-delete-multiple-versioned-package-using-curl/8393 "2022-03-21T16:03:38Z")

</div>

I am trying to delete Nexus package which are associated with more than one version. I am running a curl command to delete it, but I want a generic command which will delete all package under a folder This is the curl c…

---

## [Repository files view only](https://community.sonatype.com/t/repository-files-view-only/8369)

<div class="topic-metadata">

**Author:** [@robarencibia](https://community.sonatype.com/u/robarencibia)\
**Replies:** 1\
**Last updated:** [March 14, 2022, 5:25pm UTC](https://community.sonatype.com/t/repository-files-view-only/8369 "2022-03-14T17:25:30Z")

</div>

I am trying to make sure a file is viewable, not downloadable by a specific role. What type of configuration would I need to have on the file or repository?

---

## [How to restrict repos for anonymous users](https://community.sonatype.com/t/how-to-restrict-repos-for-anonymous-users/8267)

<div class="topic-metadata">

**Author:** [@manjunatha.ns](https://community.sonatype.com/u/manjunatha.ns)\
**Replies:** 1\
**Last updated:** [February 18, 2022, 3:49pm UTC](https://community.sonatype.com/t/how-to-restrict-repos-for-anonymous-users/8267 "2022-02-18T15:49:58Z")

</div>

we are using nexus repo for a long time, and in our case users can browse the repository without logging in how can we restrict this? we wanted to browse only after login, if I disable this option “Allow anonymous user…

---

## [Distinguish between multiple docker registries](https://community.sonatype.com/t/distinguish-between-multiple-docker-registries/8206)

<div class="topic-metadata">

**Author:** [@raphael.scheible](https://community.sonatype.com/u/raphael.scheible)\
**Replies:** 2\
**Last updated:** [February 9, 2022, 4:40pm UTC](https://community.sonatype.com/t/distinguish-between-multiple-docker-registries/8206 "2022-02-09T16:40:05Z")

</div>

Hi community, I’ve got a question for which I didn’t find any answer (maybe I searched wrong): We’ve got the use case, that we use Nexus for multiple docker registries, e.g. docker hub and github’s registry. As there m…

---

## [Getting 503 service unavailable](https://community.sonatype.com/t/getting-503-service-unavailable/8170)

<div class="topic-metadata">

**Author:** [@nvvnravi](https://community.sonatype.com/u/nvvnravi)\
**Replies:** 0\
**Last updated:** [February 3, 2022, 1:51pm UTC](https://community.sonatype.com/t/getting-503-service-unavailable/8170 "2022-02-03T13:51:03Z")

</div>

while trying to push docker images i get received unexpected HTTP status: 503 Service Unavailable this started happening from last 1 day. previously evrrything was fine. i have “Sonatype Nexus Repository ManagerOSS 3.…

---

## [Access Nexus Repository from Jenkins bypassing SSO](https://community.sonatype.com/t/access-nexus-repository-from-jenkins-bypassing-sso/8167)

<div class="topic-metadata">

**Author:** [@karlis.briksnis](https://community.sonatype.com/u/karlis.briksnis)\
**Replies:** 0\
**Last updated:** [February 2, 2022, 5:21pm UTC](https://community.sonatype.com/t/access-nexus-repository-from-jenkins-bypassing-sso/8167 "2022-02-02T17:21:11Z")

</div>

We are using Nexus Repository Manager OSS 3.251-01 For authentication, we are using Shibboleth. We are covering the whole application by SSO. We are authenticated by header. I want to find a solution to be able to pass …

---

## [Docker cleanup policy based on tags](https://community.sonatype.com/t/docker-cleanup-policy-based-on-tags/8111)

<div class="topic-metadata">

**Author:** [@mohammadbagher72moussavi](https://community.sonatype.com/u/mohammadbagher72moussavi)\
**Replies:** 2\
**Last updated:** [January 24, 2022, 3:12pm UTC](https://community.sonatype.com/t/docker-cleanup-policy-based-on-tags/8111 "2022-01-24T15:12:18Z")

</div>

Hi, As I see in creating “cleanup policy”, I only can set “Remove components that were published over N days ago” or “Remove components that haven’t been downloaded in N days”. But I need to for example have last 20 tag…

---

## [Unable to login initially with randomly generated password](https://community.sonatype.com/t/unable-to-login-initially-with-randomly-generated-password/7958)

<div class="topic-metadata">

**Author:** [@praveenkanjarla](https://community.sonatype.com/u/praveenkanjarla)\
**Replies:** 0\
**Last updated:** [December 31, 2021, 11:01am UTC](https://community.sonatype.com/t/unable-to-login-initially-with-randomly-generated-password/7958 "2021-12-31T11:01:22Z")

</div>

Running Nexus 3.37.2 as a service in k8s cluster on setting up the nexus, i’m unable to login with the random generated password i copied the generated password from /nexus-data/admin.password & it’s not accepting, sa…

---

## [Nexus as cache for Kubenetes Kind](https://community.sonatype.com/t/nexus-as-cache-for-kubenetes-kind/7955)

<div class="topic-metadata">

**Author:** [@philipp-github](https://community.sonatype.com/u/philipp-github)\
**Replies:** 1\
**Last updated:** [December 30, 2021, 12:00pm UTC](https://community.sonatype.com/t/nexus-as-cache-for-kubenetes-kind/7955 "2021-12-30T12:00:02Z")

</div>

Hello, I’m using in my local developing environment Kubernetes Kind with Java projects (dockerized services). We get often into rate limits of multiple Maven and Docker public repositories, so I would like to setup a mi…

---

## [How would I create a proxy for a pypi that uses /+simple instead of /simple?](https://community.sonatype.com/t/how-would-i-create-a-proxy-for-a-pypi-that-uses-simple-instead-of-simple/7378)

<div class="topic-metadata">

**Author:** [@henryborchers](https://community.sonatype.com/u/henryborchers)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 1:48pm UTC](https://community.sonatype.com/t/how-would-i-create-a-proxy-for-a-pypi-that-uses-simple-instead-of-simple/7378 "2021-10-04T13:48:13Z")

</div>

I’m trying to integrate (as a stepping stone to migrate) a number of number of pypi repository indexes that are using a Devpi server into our Nexus server. However, as far as I can tell, Nexus expects all pypi endpoints…

---

## [Migration](https://community.sonatype.com/t/migration/7267)

<div class="topic-metadata">

**Author:** [@schollii](https://community.sonatype.com/u/schollii)\
**Replies:** 6\
**Last updated:** [September 10, 2021, 4:15pm UTC](https://community.sonatype.com/t/migration/7267 "2021-09-10T16:15:07Z")

</div>

Hi everyone, I have Nexus Repository OSS installed in a kubernetes cluster, and setup to save artifacts in S3. I need to setup a new Nexus instance, and after a couple of days tear down the current Nexus. My question is,…

---

## [Nexus repository pro connection with PostgreSQL](https://community.sonatype.com/t/nexus-repository-pro-connection-with-postgresql/7162)

<div class="topic-metadata">

**Author:** [@muhammad.zeeshan](https://community.sonatype.com/u/muhammad.zeeshan)\
**Replies:** 4\
**Last updated:** [August 20, 2021, 3:49pm UTC](https://community.sonatype.com/t/nexus-repository-pro-connection-with-postgresql/7162 "2021-08-20T15:49:24Z")

</div>

I am trying to make a connection nexus repository with PostgreSQL but connection fail every time Error: 2021-08-20 17:25:04,563+0500 ERROR \[FelixStartLevel\] \*SYSTEM com.zaxxer.hikari.pool.HikariPool - nexus - Exception …

---

## [Group id acces](https://community.sonatype.com/t/group-id-acces/7133)

<div class="topic-metadata">

**Author:** [@dev.kadirselcuk](https://community.sonatype.com/u/dev.kadirselcuk)\
**Replies:** 0\
**Last updated:** [August 16, 2021, 11:50pm UTC](https://community.sonatype.com/t/group-id-acces/7133 "2021-08-16T23:50:43Z")

</div>

Continuing the discussion from Integration API with Nexus Repository 3:

---

## [Group id acces](https://community.sonatype.com/t/group-id-acces/7025)

<div class="topic-metadata">

**Author:** [@dev.kadirselcuk](https://community.sonatype.com/u/dev.kadirselcuk)\
**Replies:** 0\
**Last updated:** [July 29, 2021, 4:24pm UTC](https://community.sonatype.com/t/group-id-acces/7025 "2021-07-29T16:24:04Z")

</div>

Continuing the discussion from Numerous 404 when Upgrading Nexus 2 OSS to Nexus 3 OSS:

---

## [Staging in Nexus Repository 3](https://community.sonatype.com/t/staging-in-nexus-repository-3/6756)

<div class="topic-metadata">

**Author:** [@ctolo](https://community.sonatype.com/u/ctolo)\
**Replies:** 3\
**Last updated:** [July 7, 2021, 9:24pm UTC](https://community.sonatype.com/t/staging-in-nexus-repository-3/6756 "2021-07-07T21:24:21Z")

</div>

Hello, I am speaking today at the Sonatype Elevate conference on Getting Started with Staging and Cleanup in NXRM. I want to use this space to answer any questions that come up from the session as well as hear any feed…

---

## [Using Nexus as docker registry](https://community.sonatype.com/t/using-nexus-as-docker-registry/6842)

<div class="topic-metadata">

**Author:** [@deepforu47](https://community.sonatype.com/u/deepforu47)\
**Replies:** 1\
**Last updated:** [July 1, 2021, 1:15pm UTC](https://community.sonatype.com/t/using-nexus-as-docker-registry/6842 "2021-07-01T13:15:52Z")

</div>

My Setup Ingress Routes (example dns names and resolving using host file) Web Interface (nexus.bar.com)–\> Nexus Service (Working) Docker Registry (docker.bar.com) → Nexus Service (Not Working) Created self signed…

---

## [The top docker command for Nexus implementation](https://community.sonatype.com/t/the-top-docker-command-for-nexus-implementation/6823)

<div class="topic-metadata">

**Author:** [@pinimac](https://community.sonatype.com/u/pinimac)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 3:20pm UTC](https://community.sonatype.com/t/the-top-docker-command-for-nexus-implementation/6823 "2021-06-29T15:20:00Z")

</div>

Can you provide us the best practice of docker run command for nexus implementation?

---

## [Is it possible to accept anonymous access only from a private network?](https://community.sonatype.com/t/is-it-possible-to-accept-anonymous-access-only-from-a-private-network/6618)

<div class="topic-metadata">

**Author:** [@jschwarz](https://community.sonatype.com/u/jschwarz)\
**Replies:** 2\
**Last updated:** [May 28, 2021, 9:40am UTC](https://community.sonatype.com/t/is-it-possible-to-accept-anonymous-access-only-from-a-private-network/6618 "2021-05-28T09:40:58Z")

</div>

Hi, we are using nexus3 to host build artifacts. We want to use nexus to provide these artifacts to our customers. We are now facing a problem: currently nexus accepts unauthenticated (anonymous) requests (the actual se…

---

## [Using Nexus with Maven -plain text password in settings.xml](https://community.sonatype.com/t/using-nexus-with-maven-plain-text-password-in-settings-xml/6332)

<div class="topic-metadata">

**Author:** [@richm123](https://community.sonatype.com/u/richm123)\
**Replies:** 1\
**Last updated:** [April 15, 2021, 6:08pm UTC](https://community.sonatype.com/t/using-nexus-with-maven-plain-text-password-in-settings-xml/6332 "2021-04-15T18:08:33Z")

</div>

I am setting up Nexus 3.29 OSS to be used with Maven repositories. One of the first issue I see is with the plain-text nexus credentials being stored in Maven settings.xml. Maven supports API tokens instead of passwords…

---

## [Artifact sha1 value and deletion](https://community.sonatype.com/t/artifact-sha1-value-and-deletion/5595)

<div class="topic-metadata">

**Author:** [@sameer29nov](https://community.sonatype.com/u/sameer29nov)\
**Replies:** 1\
**Last updated:** [December 18, 2020, 5:04pm UTC](https://community.sonatype.com/t/artifact-sha1-value-and-deletion/5595 "2020-12-18T17:04:30Z")

</div>

Hello There, We have one shell scrip which returns sha1 value from .properties file, and we do perform clean up with that from GUI under search. In some case single sha1 value shows multiple records and we are not able…

---

## [\[Sonatype\] Nexus Repository 3.28.0 Released](https://community.sonatype.com/t/sonatype-nexus-repository-3-28-0-released/5058)

<div class="topic-metadata">

**Author:** [@bkostak](https://community.sonatype.com/u/bkostak)\
**Replies:** 0\
**Last updated:** [October 5, 2020, 5:09pm UTC](https://community.sonatype.com/t/sonatype-nexus-repository-3-28-0-released/5058 "2020-10-05T17:09:00Z")

</div>

We are pleased to announce Nexus Repository 3.28 through our new Storage Management Best Practices: Part 2 - Expand Storage with Ease blog. This release includes Change Repo Blob Store (Pro only), which allows an admini…

---

## [Run nexus3 sonatype in production oss version](https://community.sonatype.com/t/run-nexus3-sonatype-in-production-oss-version/4671)

<div class="topic-metadata">

**Author:** [@eliyahunoach77](https://community.sonatype.com/u/eliyahunoach77)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 6:22pm UTC](https://community.sonatype.com/t/run-nexus3-sonatype-in-production-oss-version/4671 "2020-07-22T18:22:59Z")

</div>

Hi , I ll like to know what is the best practice to run nexus3 in production oss version , how to calculate sizing , and also how to configure the HEAP size how to calculate it ? also ill like to know what is the best…

---

## [Nexus Repository Manager - Private Repositories and Anonymous User Permissions](https://community.sonatype.com/t/nexus-repository-manager-private-repositories-and-anonymous-user-permissions/4455)

<div class="topic-metadata">

**Author:** [@mworthington](https://community.sonatype.com/u/mworthington)\
**Replies:** 0\
**Last updated:** [June 18, 2020, 6:50pm UTC](https://community.sonatype.com/t/nexus-repository-manager-private-repositories-and-anonymous-user-permissions/4455 "2020-06-18T18:50:57Z")

</div>

I received this customer question today. When adding a private repository, how can I require authentication for that repository? There are two parts to the answer: Requiring Authentication Once authenticated, requi…

---

## [Integration API with Nexus Repository 3](https://community.sonatype.com/t/integration-api-with-nexus-repository-3/161)

<div class="topic-metadata">

**Author:** [@mworthington](https://community.sonatype.com/u/mworthington)\
**Replies:** 5\
**Last updated:** [May 19, 2020, 5:54pm UTC](https://community.sonatype.com/t/integration-api-with-nexus-repository-3/161 "2020-05-19T17:54:22Z")

</div>

Nexus Repository supports new repository formats such as Docker and Bower and introduces a fresh, clean user interface among other advantages. Adopting or upgrading repository manager often means that you need to update …

---

## [Customer Education Releases Deployment Models for Availability and Reliability](https://community.sonatype.com/t/customer-education-releases-deployment-models-for-availability-and-reliability/3546)

<div class="topic-metadata">

**Author:** [@dwallace](https://community.sonatype.com/u/dwallace)\
**Replies:** 0\
**Last updated:** [February 20, 2020, 7:40pm UTC](https://community.sonatype.com/t/customer-education-releases-deployment-models-for-availability-and-reliability/3546 "2020-02-20T19:40:31Z")

</div>

What business outcomes are you looking to achieve with your Nexus Repository deployments? If you have the desire to slowly adopt practices for better scalability, availability, and reliability check out our new guide: De…

---

## [Getting rid of PORT number in nexus address](https://community.sonatype.com/t/getting-rid-of-port-number-in-nexus-address/2791)

<div class="topic-metadata">

**Author:** [@ramazanpolat](https://community.sonatype.com/u/ramazanpolat)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 2:03pm UTC](https://community.sonatype.com/t/getting-rid-of-port-number-in-nexus-address/2791 "2019-11-06T14:03:13Z")

</div>

In all tutorials, nexus is accessed via port number(8081) which is ugly. It also makes it look like a test system rather than a production. Is there any way to get rid of PORT number? I can use docker port mapping to ma…

---

## [Best practices for archival of external packages](https://community.sonatype.com/t/best-practices-for-archival-of-external-packages/2704)

<div class="topic-metadata">

**Author:** [@joja.public](https://community.sonatype.com/u/joja.public)\
**Replies:** 3\
**Last updated:** [October 17, 2019, 6:47am UTC](https://community.sonatype.com/t/best-practices-for-archival-of-external-packages/2704 "2019-10-17T06:47:50Z")

</div>

Hello, I need to ensure that I have always access to packages@version that are used in product releases. As far as I can see I have two options: proxy the public repo pros: simple to setup, updates automatically as …

---

## [How to deal with the air gap scenario?](https://community.sonatype.com/t/how-to-deal-with-the-air-gap-scenario/2668)

<div class="topic-metadata">

**Author:** [@stevenhung](https://community.sonatype.com/u/stevenhung)\
**Replies:** 0\
**Last updated:** [October 11, 2019, 1:43pm UTC](https://community.sonatype.com/t/how-to-deal-with-the-air-gap-scenario/2668 "2019-10-11T13:43:23Z")

</div>

What is the best practice for an air gap scenario? Is there a way for an admin to get the cache data (e.g. for NPM and maven) and copy it into the air gap laptop via a USB stick? Can the blob from the sonatype-work be co…

---

## [Multi instance migration](https://community.sonatype.com/t/multi-instance-migration/2438)

<div class="topic-metadata">

**Author:** [@flos](https://community.sonatype.com/u/flos)\
**Replies:** 1\
**Last updated:** [September 6, 2019, 9:45pm UTC](https://community.sonatype.com/t/multi-instance-migration/2438 "2019-09-06T21:45:41Z")

</div>

Hello, I have a Nexus 2 (2.14.3-02) and a Nexus 3 (3.2.0-01) and an yet still empty Nexus 3 (3.17.0-01). I want to migrate all the data from the two older instances to the new Nexus. What will be the best practice here?…

---

## [Industry standards/Best Practices](https://community.sonatype.com/t/industry-standards-best-practices/668)

<div class="topic-metadata">

**Author:** [@mahmad26](https://community.sonatype.com/u/mahmad26)\
**Replies:** 1\
**Last updated:** [July 26, 2019, 3:58pm UTC](https://community.sonatype.com/t/industry-standards-best-practices/668 "2019-07-26T15:58:25Z")

</div>

Hi, My organization has been using Nexus for a few years. We are now finding ourselves in a position where we would like to setup guidelines for new teams being onboarded and set of norms to apply to the existing teams.…

[Previous page](https://community.sonatype.com/c/nexus-repository/best-practices/55.md?page=1)

[Next page](https://community.sonatype.com/c/nexus-repository/best-practices/55.md?page=3)
