The go version in the dockerfile for golang docker debug is too old for the delve and exits abruptly with an exit code 1. Two fixes are change go version to the latest or add --check-go-version=false
Reproduce:
run docker-compose up golang
Error: Version of Delve is too old for this version of Go
On: Docker for mac
Tried out the same thing on my Linux Mint. Couldn't repro the same error!!