Reposting the answer from @GeorgeFields, because it solved the issue for me:
"...It ended up being a Gradle Daemon that had been running before I started Docker. ...So, I just did gradle --stop and then then next time it worked."
gradle --stop