Docker Community Forums

Share and learn in the Docker community.

Docker-compose: he 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

A docker newbie question…

I have docker installed on my local Windows 10 PC, with the docker images stored on drive D

In a command window when I run ‘docker images’ I see…

My docker-compose file is…

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

When I try to start this with "docker-compose up’ I get the following error/prompt.

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]

I’m guessing that this is something to do with having to tell docker-compose to look at my local docker repository, not docker hub. If so, how to fix that?

TIA

Since you didn’t specify a tag for your image that exists locally, Docker is going to try and pull ‘latest’ from docker hub. If you want to use a locally cached image use your 0.0.1-SNAPSHOT tag.