docker镜像制作出现错误
foww-0001 opened this issue · comments
foww-0001 commented
运行命令:
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
执行:
sudo systemctl start docker // 或者 sudo service docker start
docker-compose up
foww-0001 commented
运行命令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则可以正常编译。
Vitah Lin commented
docker-compose的执行目录需要是easy_docker/docker
目录下