> For the complete documentation index, see [llms.txt](https://support.portsip.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.portsip.com/pbx_v12/tutorials/upgrade-portsip-pbx-for-offline.md).

# 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
```

![](/files/ULUKl1VK71VWq93jiidH)

* 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;

![](/files/5ROJyV3qebRWpUIRCjDC)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.portsip.com/pbx_v12/tutorials/upgrade-portsip-pbx-for-offline.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
