- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我按照官方 installation guide for AzerothCore using Docker containers 在 docker 中运行 Azerothcore-WOTLK|我想知道如何更新艾泽拉斯核心构建以及如何在不丢失角色数据的情况下应用数据库更新。
要更新 docker 容器,我想我应该从 Github 中提取最新代码并使用 docker-compose down
和 docker-compose up
重建容器,但是如何做我确保我的角色数据在更新后仍然存在?
为了更新数据库,我假设我应该应用找到的所有 SQL 更新 here ,但是 db_assembler.sh 是否可用于 docker 容器?如果是,我该如何使用它?在任何更新之前备份数据库重要部分的过程是什么?
最佳答案
更新:自 2021 年 4 月 22 日起,AC 中的 Docker 系统进行了重新设计,并且在官方网站上提供了一个新的(简化的)安装和更新程序。
遗留答案
docker-compose stop CONTAINER_NAME
停止您的 worldserver
和 authserver
容器。例如:
docker-compose 停止 azerothcore-wotlk_ac-worldserver_1
要查看容器的名称,请使用 docker ps
。
作为 FAQ提到,不要使用 docker-compose down
来销毁容器,而不仅仅是停止它们。
将您的源更新到最新版本(即 git pull
)
使用 ./bin/acore-docker-build
重建源代码(现在替换为 ./acore.sh docker build
)
Update your DB像往常一样。
使用 docker-compose start
再次启动您的容器
更具体地说,关于与数据库相关的问题:
but is the db_assembler.sh usable for the docker container and if it is, how do I use it? What is the procedure for backing up important parts of the database before any update?
与传统设置没有区别。当您使用 Docker 时,您的数据库在一个包含 MySQL 服务器的 docker 容器中运行。因此,您可以访问、更新、备份等...您的数据库,就像您直接在主机上安装 MySQL-server 一样。
如官方指南所述,要访问它:
Use root as user and 127.0.0.1 as default host. The default password of the root DB user will be "password".
关于database - 如何更新 azerothcore-wotlk docker 容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55050800/
我是一名优秀的程序员,十分优秀!