【问题标题】:Failed to build docker container for AzerothCore in Windows 10无法在 Windows 10 中为 AzerothCore 构建 docker 容器
【发布时间】:2022-08-19 23:01:17
【问题描述】:

我正在关注https://www.azerothcore.org/wiki/install-with-docker 的教程,但在执行 acore.sh docker build 时失败,并显示以下消息:

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)

因此,容器无法正常运行并永远停留在启动循环中。

我正在 Windows 10 中构建容器并使用 Docker 桌面应用程序。这就是我下载和构建容器的方式:

混帐克隆https://github.com/azerothcore/azerothcore-wotlk.git

cd azerothcore-wotlk

cp conf/dist/config.sh conf/config.sh

./acore.sh docker 客户端数据

./acore.sh docker build

请让我知道我该如何解决这个问题。已经纠结了几天了...

谢谢

    标签: docker azerothcore


    【解决方案1】:

    我有一个类似的问题。尝试将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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-13
      • 2018-01-21
      • 1970-01-01
      • 2020-07-02
      • 2020-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多