[英]Failed to build docker container for AzerothCore in Windows 10
I am following the tutorial at https://www.azerothcore.org/wiki/install-with-docker but it fails when executing acore.sh docker build with the following message:我正在关注https://www.azerothcore.org/wiki/install-with-docker上的教程,但是在执行 acore.sh docker 构建时失败,并显示以下消息:
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /azerothcore/env/dist/etc/authserver.conf.dist
-- Installing: /azerothcore/env/dist/bin/authserver
CMake Error at src/server/apps/cmake_install.cmake:59 (file):
file INSTALL cannot copy file
"/azerothcore/var/build/obj/src/server/apps/authserver" to
"/azerothcore/env/dist/bin/authserver": Permission denied.
Call Stack (most recent call first):
src/server/cmake_install.cmake:42 (include)
src/cmake_install.cmake:47 (include)
cmake_install.cmake:52 (include)
Because of that the container doesn't run properly and stays in a start loop forever.因此,容器无法正常运行并永远停留在启动循环中。
I am building the container in Windows 10 and use the Docker Desktop app.我正在 Windows 10 中构建容器并使用 Docker 桌面应用程序。 And this is how I download and build the container:这就是我下载和构建容器的方式:
git clone https://github.com/azerothcore/azerothcore-wotlk.git git 克隆https://github.com/azerothcore/azerothcore-wotlk.git
cd azerothcore-wotlk cd azerothcore-wotlk
cp conf/dist/config.sh conf/config.sh cp conf/dist/config.sh conf/config.sh
./acore.sh docker client-data ./acore.sh docker 客户端数据
./acore.sh docker build ./acore.sh docker 构建
Please let me know how can I fix this.请让我知道我该如何解决这个问题。 Been struggling for a couple of days already...已经纠结了几天了...
Thank you谢谢
I've had a similar issue.我有一个类似的问题。 Try explicitly setting the own of the bin directory to acore.尝试将自己的 bin 目录显式设置为 acore。
$ git diff apps/compiler/includes/functions.sh
@@ -103,6 +103,7 @@ function comp_compile() {
comp_ccacheResetStats
time make -j $MTHREADS
+ sudo chown -R acore:acore /azerothcore/env/dist/bin
make -j $MTHREADS install
comp_ccacheShowStats
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.