Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose -f docker-compose.yml up -d报错 #1296

Open
liwenchao1984 opened this issue Dec 12, 2022 · 1 comment
Open

docker-compose -f docker-compose.yml up -d报错 #1296

liwenchao1984 opened this issue Dec 12, 2022 · 1 comment

Comments

@liwenchao1984
Copy link

执行docker-compose: 报以下错误,请问如果解决。

Pulling consul (wecmdb-pro:v2.0.6)...
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.

@liwenchao1984
Copy link
Author

找到原因了。 是因为 dockerLoad加载的版本和docker-compose.yml中的不同。

我执行命令时:
docker load --input image.tar
返回
==> Loaded image: wecmdb:v2.0.6

=======================
所以,docker-compose.yml中需要修改
image: wecmdb-pro:v2.0.6 --> 改成 wecmdb:v2.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant