Search code examples
dockeribm-clouddockerfiledocker-machine

IBM cloud : Cannot build app


I am working on a windows 10 home so I have a docker toolbox and am using an IBM cloud app service : python-django app. I followed all the instructions given here: https://console.bluemix.net/docs/apps/tutorials/tutorial_web.html#before-you-begin

I then open it in Pycharm (community edn) and try to build it locally by doing the following :

1)Import the settings.jar file (Given in the developer tools)

2)Tools > IBM Cloud Developer Tools > Build app in release mode

But I get the following error :

Creating image latestpy-django-tools based on Dockerfile-tools...
Building...
OK
Creating a container named 'latestpy-django-tools' from that image...
FAILED
An error Error response from daemon: invalid mode: /app was encountered while creating Docker container 'latestpy-django-tools'.

Please help!!


Solution

  • Kiera.k, on your Win10 system do you have Docker Toolbox or Docker for Windows? IBM Cloud Developer Tools requires Docker for Windows and will not work with Docker Toolbox.

    Also, running build with the additional --trace parameter might provide some more details, if you have not already been using that. If you are using Docker for Windows, seeing all the output you get with --trace would be great.