The Compose file './docker-compose.yml' is invalid because

Question: What is going on with the docker-compose.yml file? it is throwing an error saying 
" The Compose file './docker-compose.yml' is invalid because: services.api.volumes value [{'type': 'bind', 'source': }]
has non-unique elements".


Please Login to see the rest of the answer

Answer: Take a closer look, there is a chance that you have two same entries in the Volume Bind directive. Check and remove one entry to make sure the Bind Entries are unique.


Write an Article
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2022 - ErnesTech - Privacy