我只是想知道如何在另一个目录中运行docker- another脚本。例如,
the-service:
image: the-service
container_name: the-service
entrypoint: ./app/the/docker-entrypoint.sh
build: ./app/the
ports:
- 8080:8080
这里我得到了ERROR: for the-service Cannot start service the-service: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"./app/the-service/docker-entrypoint.sh\": stat ./app/the-service/docker-entrypoint.sh: no such file or directory": unknown ERROR: Encountered errors while bringing up the project.
docker-compose版本为2.1。那么运行这个脚本的正确方式是什么呢?
谢谢
发布于 2018-06-04 06:56:25
尝试使用WORKDIR
options https://docs.docker.com/engine/reference/builder/#workdir将当前工作目录设置为docker文件中的应用程序位置
https://stackoverflow.com/questions/50671648
复制相似问题