I also faced the same issue. There was no error except for:
strconv.Atoi: parsing "": invalid syntax
Scenario:
- a go project
- dockerfile
- docker-compose.yaml
- Windows 10 with docker-desktop
The following command will stop and delete all the docker containers that are not defined in docker compose file. There might be many useful containers running in your system that were not created by the docker-compose file or were created by someone else. Use this command with caution!
Solution:
docker-compose down --remove-orphans
Explaination:
For some reason, the docker-compose create some unknown containers along with service. This command remove those unknown problematic containers.