0

使用 docker 1.7.1,foxx-manager update从中央存储库下载 master.zip 时出现错误 500。但是,docker 1.6.1 没有发生错误。

有没有人遇到过这个问题?

如何为 arangosh 指定 https_proxy?foxx-manager update在公司代理环境中失败。

我试过这些设置:

……一切都失败了。

以下是我的会话日志:

[t.suwa@devstudy ~]$ docker run -d arangodb
e3175d53cd1fc288201bfeebaaf95084c1409c4299ce1b39369d131bf2964d0a
Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
[t.suwa@devstudy ~]$ docker ps
CONTAINER ID        IMAGE                COMMAND               CREATED             STATUS              PORTS               NAMES
e3175d53cd1f        arangodb             "/usr/sbin/arangod"   11 seconds ago      Up 9 seconds        8529/tcp            backstabbing_albattani
[t.suwa@devstudy ~]$ docker exec -it e3175d53cd1f /bin/bash
root@8155996d26ff:/# arangosh
                                       _
  __ _ _ __ __ _ _ __   __ _  ___  ___| |__
 / _` | '__/ _` | '_ \ / _` |/ _ \/ __| '_ \
| (_| | | | (_| | | | | (_| | (_) \__ \ | | |
 \__,_|_|  \__,_|_| |_|\__, |\___/|___/_| |_|
                       |___/
Welcome to arangosh 2.6.7 [linux]. Copyright (c) ArangoDB GmbH
Using Google V8 4.1.0.27 JavaScript engine, READLINE 6.3, ICU 54.1
Pretty printing values.
Connected to ArangoDB 'tcp://127.0.0.1:8529' version: 2.6.7 [standalone], database: '_system', username: 'root'
Type 'tutorial' for a tutorial or 'help' to see common examples
arangosh [_system]> fm.update()
JavaScript exception in file '/usr/share/arangodb/js/common/modules/org/arangodb/foxx/store.js' at 410,11: [ArangoError 1752: application download failed: Github download from 'https://github.com/arangodb/foxx-apps/archive/master.zip' failed with error code 500]
!    throw err;
!          ^
stacktrace: Error
    at exports.throwDownloadError (/usr/share/arangodb/js/common/modules/org/arangodb-common.js:448:9)
    at Object.update (/usr/share/arangodb/js/common/modules/org/arangodb/foxx/store.js:392:7)
    at <shell command>:1:4
4

1 回答 1

0

如果您的环境在代理之后,请在 Dockerfile 中添加这些。

ENV https_proxy=http://xx.xx.xx.xx:port
ENV https_proxy=xx.xx.xx.xx:port
ENV HTTPS_PROXY=http://xx.xx.xx.xx:port
ENV HTTPS_PROXY=xx.xx.xx.xx:port
ADD .gitconfig /.gitconfig

本地文件.gitconfig也应该有代理设置:

[http]
        proxy = http://xx.xx.xx.xx:port
[https]
        proxy = http://xx.xx.xx.xx:port

假设您在容器中使用 root 安装并运行应用程序,如果没有,则复制.gitconfig到该用户的主目录。

使用代理构建镜像,然后你应该可以在容器中下载包。

于 2015-09-09T05:09:06.427 回答