libcompose icon indicating copy to clipboard operation
libcompose copied to clipboard

docker compose file fails with libcompose passes with docker-compose CLI

Open prashanthjbabu opened this issue 6 years ago • 2 comments

Here is the docker compose file

{"networks":{"default":{}},"services":{"helloworld":{"container_name":"helloworld","environment":["TEST=hello"],"image":"tutum/hello-world","networks":{"default":{}}}},"version":"2.0","volumes":{}}

This docker compose file fails with libcompose but works with docker-compose CLI. Narrowed down the problem to : ERRO[0000] Failed Starting helloworld : Error response from daemon: page not found ERRO[0000] Failed to start: helloworld : Error response from daemon: page not found

The page not found from daemon was because of the following API call :

/v1.20/networks/connect - This is incorrect as the right API call is POST /networks/(id or name)/connect. As you can see (id or name) is missing . This is because networks is set to default.

prashanthjbabu avatar Sep 17 '18 12:09 prashanthjbabu

I'm having the same problem :(

This is because networks is set to default.

@prashanthjbabu what that means?

Is this problem related to the libcompose (master branch) or Docker version? cc: @vdemeester

thalesfsp avatar Oct 01 '18 20:10 thalesfsp

@thalesfsp I noticed that removing "networks":{"default":{}} from the above JSON works.

prashanthjbabu avatar Oct 03 '18 08:10 prashanthjbabu