mirror of
https://github.com/nocobase/nocobase
synced 2024-11-17 16:17:23 +00:00
a6eebb940f
* feat: improve code * feat: update docs * feat: update docs * Update index.md * Update features.md * Update when.md * Update contributing.md * Update translations.md * feat: clean up * Add files via upload * Update the-first-app.md * Update plugins.md * Update a-b-c.md * Update blocks.md * feat: update docs * Add files via upload * Update charts.md * feat: update navs * Update index.md * Update index.md * Update features.md * Update index.md * Update docker-compose.md * Update create-nocobase-app.md * Update git-clone.md * Update contributing.md * Update translations.md * Update plugins.md * Update the-first-app.md * Add files via upload * Update charts.md * Update charts.md * Update a-b-c.md * Update collections.md * Update menus.md * Update menus.md Co-authored-by: Zhou <zhou.working@gmail.com>
1.1 KiB
1.1 KiB
Docker 安装的升级
本篇文档所讲的 Docker 安装是基于 docker-compose.yml
配置文件,在 NocoBase GitHub 仓库 里也有提供。
1. 切换到之前安装时的目录
也可以根据实际情况,切换到 docker-compose.yml
所在的目录
# SQLite
cd nocobase/docker/app-sqlite
# MySQL
cd nocobase/docker/app-mysql
# PostgreSQL
cd nocobase/docker/app-postgres
2. 更新 image 版本号
docker-compose.yml
文件,app 容器的 image 替换为最新版本
services:
app:
image: nocobase/nocobase:0.8.0-alpha.1
3. 删除旧镜像(非必须)
如果使用的是 latest 镜像,需要先停止并删除相对应容器
# find container ID
docker ps
# stop container
docker stop <YOUR_CONTAINER_ID>
# delete container
docker rm <YOUR_CONTAINER_ID>
删除掉旧镜像
# find image
docker images
# delete image
docker rmi <YOUR_CONTAINER_ID>
4. 重启容器
docker-compose up -d app
# 查看 app 进程的情况
docker-compose logs app