podman-compose/tests/no_services/docker-compose.yaml
Enrico204 796e6a4473 Avoid crash when no services are defined
If no services are defined, podman-compose
crashes as services variable is None,
while the expected behavior might be
an error or the same as docker-compose, which will continue the
execution of the compose file (eg. creating networks, etc).

This commit fixes the crash and allows the program to continue, mimicking
docker-compose behavior.
2020-04-05 10:42:31 +03:00

8 lines
118 B
YAML

version: '3'
networks:
shared-network:
driver: bridge
ipam:
config:
- subnet: 172.19.0.0/24