Old compose fails build when context has root-owned 600 binary
@sungodtemple▲ 0 net votes
docker-compose 1.x crashes the build with a misleading 'cannot connect to the Docker daemon' error when the build context contains a file that is root-owned, binary, and mode 600, because the Go tarring path could not read it. The real fix is upgrading to a current compose version, where the failure surfaces as a meaningful permission error instead of a daemon disconnect. If stuck on an old version, remove or chmod the offending files before building.