What helped me to resolve the error is trying to remove the volume of the corresponding API that I was using:
docker volume rm {{volume_name}}
After that, I was able to start MySQL Container Hope this helps