---
title: "Upgrading Yellowfin Container Deployment"
canonical: "https://wiki.yellowfinbi.com/space/yfcurrent/2202207/Upgrading+Yellowfin+Container+Deployment"
format: markdown
---
> Macro (anchor)



## All-In-One Yellowfin image

The All-In-One Yellowfin image is a sandboxed deployment with a built-in database repository, which means any upgrades also upgrade the database, removing any existing content in the process. The All-In-One image is therefore **not suitable for upgrades, and best used for testing purposes only**. 

## App-Only Yellowfin image

The Yellowfin App-Only image retains content during version upgrades. The upgrade process is similar to a standard Yellowfin cluster upgrade, with a few extra steps to account for a Docker/Kubernetes deployment.  

> ✅ We recommend you take a backup of the Yellowfin repository database so you have a rollback point if there any hiccups during the upgrade (this step is optional but highly recommended).

To upgrade the Yellowfin version in your containerized environment, follow the steps below. 

1. Follow the same steps you used to build the App-only Docker image, but this time substitute in the new [Yellowfin installer jar that matches the upgrade version](https://yellowfin.atlassian.net/wiki/spaces/yfcurrent/pages/2196024/Install+in+a+Container#image-download).
2. If you’re deploying across multiple Docker/Kubernetes servers, push the updated image to a Docker registry
3. Scale down(stop) the number of deployed Yellowfin instances to 0, using the deployment commands specific to your platform (see [https://docs.docker.com/engine/swarm/swarm-tutorial/scale-service/](https://docs.docker.com/engine/swarm/swarm-tutorial/scale-service/) or [https://kubernetes.io/docs/reference/kubectl/cheatsheet/](https://kubernetes.io/docs/reference/kubectl/cheatsheet/) if you need help with this step) ; for example:|
  This leaves your Yellowfin configuration settings intact during and after the upgrade
4. Recommended: take a backup of the Yellowfin repository database now
5. Copy and paste the following command into your terminal window, remembering to replace the jar file name with the jar file you downloaded in step 1:
  For a full breakdown of the parameters in the above command, please see the [this wiki page](https://yellowfin.atlassian.net/wiki/display/yfcurrent/Patch+Installer#PatchInstaller-Independentcomponentupgrade)
6. Use your platform’s native command to update the Yellowfin Docker image  
For example, for a Yellowfin 9.6.0 upgrade in Docker Swarm from the Docker registry called My_Docker_Registry, you could use:
7. Use your platform’s native command to set the number of instances back to the pre-upgrade value using the same scaling command as earlier, and to restart the service with the new image   
For example, in Docker Swarm with one instance, you could use:

The upgrade should now be complete.

## Section navigation

### Current topic - Install in a Container

The page is part of the [Install in a Container](https://yellowfin.atlassian.net/wiki/spaces/yfcurrent/pages/2196024) topic contains the following pages, split by Docker and Kubernetes:

[Upgrading Yellowfin Container Deployment](https://old-wiki.yellowfinbi.com/display/yfcurrent/Upgrading+Yellowfin+Container+Deployment)

- [Deploy to Docker without Swarm](https://old-wiki.yellowfinbi.com/display/yfcurrent/Deploy+to+Docker+without+Swarm)
  - [Sandbox Instance with All-In-One Image](https://old-wiki.yellowfinbi.com/display/yfcurrent/Sandbox+Instance+with+All-In-One+Image)
  - [Single Instance with App-Only Image](https://old-wiki.yellowfinbi.com/display/yfcurrent/Single+Instance+with+App-Only+Image)
  - [Multiple Discrete Instances with App-Only Image](https://old-wiki.yellowfinbi.com/display/yfcurrent/Multiple+Discrete+Instances+with+App-Only+Image)
  - [A Cluster with App-Only Image](https://old-wiki.yellowfinbi.com/display/yfcurrent/A+Cluster+with+App-Only+Image)
- [Deploy to Docker with Swarm](https://old-wiki.yellowfinbi.com/display/yfcurrent/Deploy+to+Docker+with+Swarm)
  - [Sandbox instance with All-In-One Image - Swarm](https://old-wiki.yellowfinbi.com/display/yfcurrent/Sandbox+instance+with+All-In-One+Image+-+Swarm)
  - [Single Instance with App-Only Image - Swarm](https://old-wiki.yellowfinbi.com/display/yfcurrent/Single+Instance+with+App-Only+Image+-+Swarm)
  - [Multiple Discrete Instances with App-Only Image - Swarm](https://old-wiki.yellowfinbi.com/display/yfcurrent/Multiple+Discrete+Instances+with+App-Only+Image+-+Swarm)
  - [A Cluster with App-Only Image - Swarm](https://old-wiki.yellowfinbi.com/display/yfcurrent/A+Cluster+with+App-Only+Image+-+Swarm)

[Kubernetes](https://old-wiki.yellowfinbi.com/display/yfcurrent/Kubernetes)

- [Deploy to Kubernetes without load balancing](https://old-wiki.yellowfinbi.com/display/yfcurrent/Deploy+to+Kubernetes+without+load+balancing)
  - [Sandbox Instance with All-In-One Image - no Load Balancer](https://old-wiki.yellowfinbi.com/display/yfcurrent/Sandbox+Instance+with+All-In-One+Image+-+no+Load+Balancer)
  - [Multiple Discrete Instances with App-Only Image - no Load Balancer](https://old-wiki.yellowfinbi.com/display/yfcurrent/Multiple+Discrete+Instances+with+App-Only+Image+-+no+Load+Balancer)
- [Deploy to Kubernetes with Load Balancing](https://old-wiki.yellowfinbi.com/display/yfcurrent/Deploy+to+Kubernetes+with+Load+Balancing)
  - [Single Instance with App-Only Image and Load Balancer](https://old-wiki.yellowfinbi.com/display/yfcurrent/Single+Instance+with+App-Only+Image+and+Load+Balancer)
  - [A Cluster with App-Only Image and Load Balancer](https://old-wiki.yellowfinbi.com/display/yfcurrent/A+Cluster+with+App-Only+Image+and+Load+Balancer)

This page is part of the [Install And Deploy Yellowfin](https://yellowfin.atlassian.net/wiki/spaces/yfcurrent/pages/2203838) section of the wiki, which has these topics:

### Install on Premises

[Upgrading Yellowfin Container Deployment](https://old-wiki.yellowfinbi.com/display/yfcurrent/Upgrading+Yellowfin+Container+Deployment)

- [Installation Steps](https://old-wiki.yellowfinbi.com/display/yfcurrent/Installation+Steps)
- [Post Installation](https://old-wiki.yellowfinbi.com/display/yfcurrent/Post+Installation)
- [Copy of Installation Steps](https://old-wiki.yellowfinbi.com/display/yfcurrent/Copy+of+Installation+Steps)

### Install in the Cloud

[Install in the Cloud](https://old-wiki.yellowfinbi.com/display/yfcurrent/Install+in+the+Cloud)

- [Yellowfin for AWS](https://old-wiki.yellowfinbi.com/display/yfcurrent/Yellowfin+for+AWS)
- [Yellowfin for Azure](https://old-wiki.yellowfinbi.com/display/yfcurrent/Yellowfin+for+Azure)
- [Yellowfin for Google Cloud Platform](https://old-wiki.yellowfinbi.com/display/yfcurrent/Yellowfin+for+Google+Cloud+Platform)

### Install in a container 

[Install in a Container](https://old-wiki.yellowfinbi.com/display/yfcurrent/Install+in+a+Container)

- [Docker](https://old-wiki.yellowfinbi.com/display/yfcurrent/Docker)
- [Kubernetes](https://old-wiki.yellowfinbi.com/display/yfcurrent/Kubernetes)
- [Upgrading Yellowfin Container Deployment](https://old-wiki.yellowfinbi.com/display/yfcurrent/Upgrading+Yellowfin+Container+Deployment)

### Deploy Yellowfin

[Deploy Yellowfin](https://old-wiki.yellowfinbi.com/display/yfcurrent/Deploy+Yellowfin)

- [Logs and Logging](https://old-wiki.yellowfinbi.com/display/yfcurrent/Logs+and+Logging)
- [Yellowfin Directory Structure](https://old-wiki.yellowfinbi.com/display/yfcurrent/Yellowfin+Directory+Structure)
- [User Welcome](https://old-wiki.yellowfinbi.com/display/yfcurrent/User+Welcome)

### Advanced Deployments 

[Advanced Deployments](https://old-wiki.yellowfinbi.com/display/yfcurrent/Advanced+Deployments)

- [Clustering Guide](https://old-wiki.yellowfinbi.com/display/yfcurrent/Clustering+Guide)
- [Yellowfin Server Specification](https://old-wiki.yellowfinbi.com/display/yfcurrent/Yellowfin+Server+Specification)
- [Automate Yellowfin Deployment on Linux](https://old-wiki.yellowfinbi.com/display/yfcurrent/Automate+Yellowfin+Deployment+on+Linux)
- [Repository Clustering on AWS](https://old-wiki.yellowfinbi.com/display/yfcurrent/Repository+Clustering+on+AWS)
- [SAML Bridge](https://old-wiki.yellowfinbi.com/display/yfcurrent/SAML+Bridge)
- [Standalone Configuration Tools](https://old-wiki.yellowfinbi.com/display/yfcurrent/Standalone+Configuration+Tools)