MiniBullLab / easy_docker

1 stars 1 forks source link

docker镜像制作出现错误 #35

Closed foww-0001 closed 3 years ago

foww-0001 commented 3 years ago

运行命令:

make build

出现报错:

docker-compose build
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
Makefile:4: recipe for target 'build' failed
make: *** [build] Error 1
MiniBullLab commented 3 years ago

执行:

sudo systemctl start docker // 或者 sudo service docker start
docker-compose up
foww-0001 commented 3 years ago

运行命令docker-compose up,报错:

ERROR: 
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml

后面make则可以正常编译。

vitahlin commented 3 years ago

docker-compose的执行目录需要是easy_docker/docker目录下