I have created a docker volume from my Dockerfile , see below
VOLUME [ “/appdata” ]
I used the Dockerfile to build image for my application. I see a volume got created.
→ docker volume ls
DRIVER VOLUME NAME
I then tried to use docker-compose for image building and docker container launch. My docker-compose.yaml look like this
When I do docker-compose up, I see a new volume is getting created and not using the earlier “appdata” volume. Is there a way to use same volume ?