docker / libcompose

*Unmaintained/Deprecated* An experimental go library providing Compose-like functionality
https://godoc.org/github.com/docker/libcompose
Apache License 2.0
586 stars 191 forks source link

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

Open prashanthjbabu opened 6 years ago

prashanthjbabu commented 6 years ago

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