Skip to content

如何更新到新版本? #77

Answered by GZTimeWalker
xiongsp asked this question in Q&A
Discussion options

You must be logged in to vote

@xiongsp 如已经使用 docker compose 部署,可以先 down 之后 docker pull 最新版本,之后 up

持久化存储均应挂载容器外部目录,GZCTF 本身是无状态应用,可以随意重建,如遇到数据丢失,请自查数据库配置是否正确。

同时,由于部署方式的特殊性,不支持应用内更新。

对于使用scripts目录下docker-compose.yml部署者,可以使用如下命令进行更新。(此方法将保留数据库数据)

cd GZCTF # docker-compose.yml的位置
docker-compose down
docker pull gztime/gzctf:latest
docker-compose up -d

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@xiongsp
Comment options

@GZTimeWalker
Comment options

Answer selected by GZTimeWalker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #76 on January 03, 2023 04:53.