我正在 Windows 10 PC 上进行本地开发,并在驱动器 D 上安装了 Docker 映像。
当我运行“docker-compose up”命令时,出现以下错误...
Pulling eis-config (eis/eis-config:)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.
Continue with the new image? [yN]
知道为什么会这样吗?(可能是 docker-compose 正在 docker-hub 上而不是在本地寻找图像吗?
'docker-compose.yml' 文件如下所示......
version: "3.7"
services:
eis-config:
image: eis/eis-config
ports:
- "8001:8001"
eis-eureka:
image: eis/eis-eureka
ports:
- "8761:8761"
depends_on:
- eis-config
eis-zuul:
image: eis/eis-zuul
ports:
- "8080:8080"
depends_on:
- eis-eureka
gd-service:
image: eis/gd-service
ports:
- "8015:8015"
depends_on:
- eis-eureka
您正在运行没有 Image 标签的 eis/eis-config,因此 docker 隐含地假定为最新。您没有带有最新标签的图像 eis/eis-config。所以要么用最新的标签构建你的图像,要么运行图像:eis/eis-config:0.0.1-SNAPSHOT
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句