Docker-compose up错误:无法为服务笔记本创建容器:类型“ bind”的无效安装配置:绑定安装源路径不存在

时间:2019-02-20 14:55:48

标签: docker docker-compose

我将docker镜像从计算机复制到了另一个镜像,然后执行了docker-compose up,但出现以下错误。我之前已经在其他计算机上完成了此操作,并且运行良好(只是将映像从一台计算机复制到另一台计算机,然后启动docker-compose up),但是这次却没有。关于我为什么遇到这个问题的任何想法?

还请注意,文件.env存在,并且与docker-compose.yml文件正确放置在同一文件夹中。

mart23@abc549:~/Documents/docker/repos/operations/notebooks$ docker-compose up
WARNING: Service "notebook" uses secret "dock_secret" which is external.
External secrets are not available to containers created by docker-compose.
Creating my_notebook ... error
ERROR: for my_notebook  Cannot create container for service notebook:
invalid mount config for type "bind": bind mount source path does not exist:
/home/mart23/Documents/docker/repos/operations/notebooks/.env
ERROR: for notebook  Cannot create container for service notebook: 
invalid mount config for type "bind": bind mount source path does not exist:
/home/mart23/Documents/docker/repos/operations/notebooks/.env
ERROR: Encountered errors while bringing up the project.

0 个答案:

没有答案