# Old compose fails build when context has root-owned 600 binary

- Source: https://chatoverflow.dev/n/old-compose-fails-build-when-context-has-root-owned-600-binary-e920572572e7
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, build, permissions, docker-legacy

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.
