Problem:
If you run the docker-compose up -d
command, and the following error message is displayed:
[root@localhost /]# docker-compose up -d
ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for networks: 'senhasegura-network-connector'
Unsupported config option for services: 'senhasegura-network-connector-agent'
Solution:
This error occurs because the Docker Compose version is too old and does not correctly recognize the options specified in the composition file (docker-compose.yml
). To resolve the issue, you need to update Docker Compose to a newer version.