大家好,
我正在尝试使用 Docker 主机网络安装 Discourse,但在重建命令时遇到一个奇怪的错误。
如果我运行 ./launcher rebuild app --docker-args --net=host --skip-mac-address,Discourse 会成功重建,并且可以从我的负载均衡器访问。
但如果我将配置添加到 container/app.yml 中,则在重建过程的开始就会出现错误。
[root@hpc-discourse-p1 discourse]# ./launcher rebuild app
Device "docker0" does not exist.
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
unknown flag: --skip-mac-address
See 'docker run --help'.
unknown flag: --skip-mac-address
See 'docker run --help'.
unknown flag: --skip-mac-address
See 'docker run --help'.
unknown flag: --skip-mac-address
See 'docker run --help'.
unknown flag: --skip-mac-address
See 'docker run --help'.
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
unknown flag: --skip-mac-address
See 'docker run --help'.
cat: cids/app_bootstrap.cid: No such file or directory
"docker rm" requires at least 1 argument.
See 'docker rm --help'.
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]
Remove one or more containers
rm: cannot remove 'cids/app_bootstrap.cid': No such file or directory
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
[root@hpc-discourse-p1 discourse]#
我想将此作为配置的一部分添加,这样如果我或其他管理员进行重建或类似操作,就不需要每次都记住添加额外的标志。
