如何更新azerothcore-wotlk docker容器 [英] How to update azerothcore-wotlk docker container
问题描述
我正在按照官方 AzerothCore安装指南,在docker中运行Azerothcore-WOTLK Docker容器,我想知道如何更新Azerothcore构建以及如何应用数据库更新而不丢失字符数据。
I'm running Azerothcore-WOTLK in docker following the official installation guide for AzerothCore using Docker containers and I'm wondering how I can update the Azerothcore build and how to apply database updates without losing character data.
要更新Docker容器,我猜猜我应该从Github中获取最新代码,并使用 docker-compose down
和 docker-compose
重建容器,但是如何确保我的角色数据在更新中幸免?
To update the docker container I guess I should pull the latest code from Github and rebuild the containers using docker-compose down
and docker-compose up
, but how do I make sure my character data survives the update?
要更新数据库,我假设我应该应用所有发现的SQL更新此处,但是db_assembler.sh可用于Docker容器吗?是的,我该如何使用?在进行任何更新之前备份数据库重要部分的过程是什么?
To update the database I'm assuming that I should apply all the SQL updates found here, 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?
推荐答案
1)停止您的 docker-compose stop CONTAINER_NAME
> worldserver 和 authserver
容器。
1) Stop your worldserver
and authserver
containers using docker-compose stop CONTAINER_NAME
.
例如:
docker-compose stop azerothcore-wotlk_ac-worldserver_1
要查看容器的名称,请使用 docker ps
。
To see the names of your containers use docker ps
.
如 FAQ 所述,请勿使用 docker-compose down
,它破坏容器而不是仅仅停止它们。
As the FAQ mentions, do NOT use docker-compose down
which destroyes the containers instead of just stopping them.
2)更新您的源为最新版本(即 git pull
)
2) Update your sources to latest version (i.e. git pull
)
3)使用重建源./bin/acore-docker-build
4)像平常一样更新数据库。
5)使用 docker-compose start重新启动容器
更具体地说,关于与DB相关的问题:
More specifically, about the question related to the DB:
但是db_assembler.sh可用于docker容器吗?如果可以,如何使用它?在进行任何更新之前备份数据库重要部分的过程是什么?
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-server的docker容器中运行。因此,您可以访问,更新,备份等...您的数据库与在主机上直接安装mysql-server时完全相同。
there is no difference with the traditional setup. When you use Docker, your DB is running inside a docker container which holds the mysql-server. So you can access, update, backup, etc... your database exactly the same way you would do if you installed mysql-server direcly on your host machine.
到按照官方指南的说明进行访问:
To access it, as the official guide says:
使用root作为用户,使用127.0.0.1作为默认主机。根数据库用户的默认密码将为密码。
Use root as user and 127.0.0.1 as default host. The default password of the root DB user will be "password".
这篇关于如何更新azerothcore-wotlk docker容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!