MiniBullLab / easy_docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker镜像制作出现错误

foww-0001 opened this issue · comments

运行命令:

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

执行:

sudo systemctl start docker // 或者 sudo service docker start
docker-compose up

运行命令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则可以正常编译。

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