Question: How do you resolve the docker-compose error:
sudo docker-compose build
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
Solution: Make sure that in your docker-compose.yaml file the service name and the image name are all in small letters. Docker Compose does not like camel case naming of container, service, or image.
- Make sure that the appropriate permission is granted to the folder containing the application.
[NB] Make sure docker is running, check if docker service is running: sudo docker service status
[NB] If docker service is not running, start it: sudo docker service start
[NB] Then build your docker image using docker-compose.