我将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.