【问题标题】:Inconsistent issue when using docker-compose in Bluemix在 Bluemix 中使用 docker-compose 时出现不一致的问题
【发布时间】:2017-04-05 04:57:48
【问题描述】:

我在 Bluemix/IBM Containers 中使用 docker-compose 部署和链接 3 个容器时遇到问题。我正在使用的撰写文件已经工作并继续工作,但它非常不一致。当它失败时,我得到以下响应:

Recreating xxxxx_1
Recreating yyyyy_1
Creating zzzzz_1

ERROR: for server  'message'
Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 64, in main
  File "compose/cli/main.py", line 116, in perform_command
  File "compose/cli/main.py", line 876, in up
  File "compose/project.py", line 416, in up
  File "compose/parallel.py", line 66, in parallel_execute
KeyError: 'message'
Failed to execute script docker-compose

【问题讨论】:

  • 我怀疑你的系统有不一致的 Docker 版本?

标签: docker containers ibm-cloud docker-compose


【解决方案1】:

Docker compose 不会暴露非常好的错误消息(基本上,当某些事情发生时它并不期望,你会得到一个奇怪的堆栈跟踪)。我的猜测是时机问题 - compose 上的默认超时期待本地 docker(可能在速度非常快的计算机上),所以如果事情没有很快开始,它有时会变得不愉快。

在 Bluemix 云中,容器具有 SDN 和其他设置,可能需要比本地 docker 稍长的时间,因此“启动非常非常快”并不总是符合 compose 的预期。

尝试先执行export COMPOSE_HTTP_TIMEOUT=300 来延长超时时间,这应该会有所帮助。

【讨论】:

    猜你喜欢
    • 2020-04-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-05
    • 2020-08-15
    • 2019-02-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多