# Sonatype Nexus Repository Containers With Persistent Storage in Azure

**January 05, 2018**  
By Daniel Scott-Raynsford

2 minute read time

On the [back of yesterday's post](https://dscottraynsford.wordpress.com/2017/08/05/persistent-storage-in-azure-container-instances/) on running Azure Container Instance containers with persistent storage, I thought I'd try a few other containers with [my script](https://dscottraynsford.wordpress.com/2017/08/05/persistent-storage-in-azure-container-instances/).

**Note:** _I don't actually plan on running any of these apps, I just wanted to test out the process and my scripts to identify any problems._

I tried:

- [Sonatype Nexus Repository 2](https://hub.docker.com/r/sonatype/nexus/) – sonatype/nexus:oss
- [Sonatype Nexus Repository 3](https://hub.docker.com/r/sonatype/nexus3/) – sonatype/nexus3:latest
- [Jenkins](https://hub.docker.com/r/jenkins/jenkins/) – jenkins/jenkins

And here are the results of my tests:

## Sonatype Nexus Repository 2

Works perfectly, and the container starts up quickly (under 10 seconds):

I passed the following parameters to the script:

**Note**: The [Sonatype Nexus Repository](/content/products/sonatype-nexus-repository/index.html) 2 serv **er is only accessible on the path /nexus/.**

## Sonatype Nexus Repository 3

Works perfectly, but after that takes at least a minute to be accessible after the container starts. But this is normal behavior for Sonatype Nexus Repository 3.

I passed the following parameters to the script:

## Jenkins

Unfortunately, Jenkins does not work with a persistent storage volume from an Azure Share. It seems to be trying to set the timestamp of the file that will contain the InitialAdminPassword, which is failing:

I passed the following parameters to the script:

So, this is still a little hit and miss, but in general Azure Container Instances look like a promising way to run different types of services in containers without a lot of overhead. With a bit of automation, this could be a cost effective way to quickly and easily run some common services.

**About Daniel Scott-Raynsford (Microsoft MVP)**

I am a Microsoft MVP in Cloud and Datacenter Management. I am also a Technical Specialist at IAG NZ Ltd in the Continuous Delivery team and responsible for PowerShell DSC and automation. I live and breathe all things PowerShell and PowerShell DSC, Azure, containers and Windows Server. I am currently an MCSA in Windows Server 2012R2. I am also an active contributor to the Microsoft DSC Community Resource Kit and PowerShell Documentation.

You can follow my work on my site at [Powershell, Programming at DevOps.](https://dscottraynsford.wordpress.com/author/dscottraynsford/)

Written by **Daniel Scott-Raynsford**

Tags  
Nexus Repo ReelcontainersjenkinsSonatype Nexus Repository
