Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

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

@prashanthjbabu

Description

@prashanthjbabu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions