Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allow redeploy for "latest" docker tag in Nexus OSS

Tags:

docker

nexus

I'm using nexus to host both maven and docker artifacts. For the docker production artifacts I'd like to turn on "disable redeploy" to ensure the image can never change on the nexus server once it is potentially in production.

However, enabling "disable redeploy" appears to make it impossible to re-publish the "latest" tag to point to the latest version.

When trying to push I get obscure errors on the client such as blob upload invalid: blob upload invalid.

Is it possible to disable redeploy to concrete version tags, while allowing on tags like "latest"

like image 667
Dustin Avatar asked Mar 20 '17 15:03

Dustin


People also ask

Can Nexus hold docker images?

Nexus Repository supports Docker images and Helm 3 repositories with Proxy, Hosted, and Group repositories, allowing users advanced container management capabilities across development teams.


1 Answers

In sonartype version 3.21.1 this feature has been added. When the Disable redeploy policy is selected , we get new option: Allow redeploying the 'latest' tag but defer to the Deployment Policy for all other tags.

sonartype

Link: https://issues.sonatype.org/browse/NEXUS-18186

like image 141
Mukesh M Avatar answered Nov 11 '22 02:11

Mukesh M