Patrick Delamere
Patrick Delamere

Reputation: 81

IBM Bluemix erroring when creating volumes via docker-compose up

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.

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

Thanks, Patrick

Upvotes: 3

Views: 291

Answers (1)

Patrick Delamere
Patrick Delamere

Reputation: 81

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

Upvotes: 5

Related Questions