# Upgrade PortSIP PBX for offline

If the PortSIP PBX installation is running in a production environment that no internet connection, please follow the below steps to upgrade.

* Take the offline docker image from PortSIP. For example `pbx.img.12.6.3.887.tar.gz`
* Copy the `pbx.img.12.6.3.887.tar.gz` to the `/root` path of the PBX server
* Perform the below command:

```
docker load < pbx.img.12.6.3.887.tar.gz
```

![](https://846155343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfkamWLaD5pcQwlKWwC%2Fuploads%2FMST0wEMyovLj7T3PvfUT%2Foffline1.png?alt=media\&token=a70950c2-30f2-4170-8471-d6b33a78aa6e)

* Perform the below commands, you will need to replace the IP with real PBX IP

```
docker stop -t 120 portsip-pbx
docker rm -f portsip-pbx
docker container run -d --name portsip-pbx --cap-add=SYS_PTRACE --network=host -v /var/lib/portsip:/var/lib/portsip -v /etc/localtime:/etc/localtime:ro -e POSTGRES_PASSWORD="123456" -e POSTGRES_LISTEN_ADDRESSES="*" -e IP_ADDRESS="192.168.1.205" portsip/pbx:12.6.3.887-release
```

&#x20; &#x20;

![](https://846155343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfkamWLaD5pcQwlKWwC%2Fuploads%2FTsUr0lbw0xTHFFcOg3K0%2Foffline2.png?alt=media\&token=8a0d868e-1792-448f-bfd6-01a297e8b5cc)
