通过Docker创建卷创建IBM Bluemix时出错 [英] IBM Bluemix erroring when creating volumes via docker-compose up

查看:227
本文介绍了通过Docker创建卷创建IBM Bluemix时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用与Bluemix一起使用的docker-compose.yml。 docker-compose.yml在与docker直接连接时工作正常。这里有错误信息:


$ docker-compose -f docker-compose-bluemix.yml up -d

使用默认驱动程序创建卷angularexpress_iib-binary

创建angularexpress_iib-binary_1

错误:angularexpress_iib-binary


我已经手动创建了卷,看看是否有帮助,但仍然收到相同的错误消息:


$ cf ic卷列表

iib

iib二进制


docker-compose-bluemix.yml中的相关部分如下:

  version:'2'
服务:
iib:
iib二进制:
图像:$ {BLUEMIX_REG} iib二进制:v10.0.0.4
入口点:/ bin / bash
卷:
- iib-binary:/ iibBinary
卷:
iib-binary:{}

只是提供一些更多的上下文。




  • 我已经将所有依赖图像加载到Bluemix

  • 我已经创建了一个新版本原始的docker-compose.yml文件,以确保从Bluemix注册表中获取所有依赖图像

  • bx版本0.3.1-7b45723-2016-03-16T02:55:28 + 00: 00

  • cf ic(Docker)版本1.10.3-cs2,build f02424d

  • cf版本6.16.1 + 924508c-20162-26



任何解决此问题的帮助或指针都将非常感谢!



谢谢,Patrick

解决方案

我已经解决了这个问题,使docker-compose文件v1兼容。 Bluemix还不支持docker-compose v2。



这里是固定的yml:

  iib:
iib-binary:
image:$ {BLUEMIX_REG} iib-binary:v10.0.0.4
entrypoint:/ bin / bash
volumes:
- / iibBinary
}

发生了什么变化?




  • 已删除行==>版本:'2'

  • 已删除行==>服务:

  • 已更改 - iib-binary:/ iibBinary至 - / iibBinary

  • 删除底部的完整卷:部分



我希望它有助于某人。
问候,Patrick


I am currently trying to get a docker-compose.yml working with Bluemix. The docker-compose.yml works fine when used directly with docker. Here the error message:

$ docker-compose -f docker-compose-bluemix.yml up -d
Creating volume "angularexpress_iib-binary" with default driver
Creating angularexpress_iib-binary_1
ERROR: "angularexpress_iib-binary"

I have created the volumes manually to see if it would help, but still getting the same error message:

$ cf ic volume list
iib
iib-binary

The relevant sections in the docker-compose-bluemix.yml are as follows:

 version: '2'
 services:
 iib:
 iib-binary:
    image: ${BLUEMIX_REG}iib-binary:v10.0.0.4
    entrypoint: /bin/bash
    volumes:
     - iib-binary:/iibBinary
 volumes:
    iib-binary: {}

Just to provide some more context.

  • I have already loaded all the dependant images to Bluemix
  • I have created a new version of the original docker-compose.yml file to ensure all dependant images are pulled from the Bluemix registry
  • bx version 0.3.1-7b45723-2016-03-16T02:55:28+00:00
  • cf ic (Docker) version 1.10.3-cs2, build f02424d
  • cf version 6.16.1+924508c-2016-02-26

Any help or pointers to resolve this issue would be very much appreciated!

Thanks, Patrick

解决方案

I have resolved the issue by making the docker-compose file v1 compatible. Bluemix does not yet support docker-compose v2.

Here the fixed yml:

 iib:
 iib-binary:
    image: ${BLUEMIX_REG}iib-binary:v10.0.0.4
    entrypoint: /bin/bash
    volumes:
     - /iibBinary
}

What changed?

  • Removed line ==> version: '2'
  • Removed line ==> services:
  • Changed " - iib-binary:/iibBinary" to " - /iibBinary"
  • Removed complete "volumes:" section at the bottom

I hope it helps someone. Regards, Patrick

这篇关于通过Docker创建卷创建IBM Bluemix时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆