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.

libcompose fails to create networks for version "2.0" and above #515

@prashanthjbabu

Description

@prashanthjbabu

The following docker compose file fails to work with libcompose

version: "2.0"
services:
postgres:
image: 'postgres:10.4'
container_name: postgres
restart: always
networks:
my-network:
networks:
my-network:
driver: "bridge"

It doesn't work for version 2.1,2.2 etc either . Replacing version to "2" works! The same yaml file above works on docker-compose CLI

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