How to update the docker site version without losing data?

Viewed 198

I am in version 1.3.0 , a new update came which is 1.3.1 , how do i update without losing data, if my site is hosted as docker.

1 Answers

FYI: https://answer.apache.org/docs/upgrade

If you run Answer using the Docker command such as below, then follow the commands below for version update:

docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:latest

upgrade

docker pull apache/answer:latest
docker stop answer
docker rm answer
docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:latest

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2024 Apache Answer Meta.