$ sudo ls -la /var/run/docker.socksrw-rw- 1 root docker 0 Dec 21 19:16 /var/run/docker.sock Is your user in Docker user group ? The Unix socket file should be like the following: $ sudo service docker status? rvice – Docker Application Container Engine Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled) Active: active (running) since Thu 19:16:26 UTC 1h 45min ago Docs: Main PID: 20127 (dockerd) Tasks: 23 Memory: 1.0G CPU: 53.520s Is the unix socket file of Docker has proper ownership?Ĭheck if the docker Unix socket has correct file ownership. Docker-compose might not have been able to access to Docker engine. Is Docker engine running?Ĭheck if Docker engine is running. If you faced an error like in the title when you run docker-compose build, the solutions below may help you.