Below is the instruction of docker-compose
that creates multiple volumes in a container and exits:
cache:
build: ../../
dockerfile: docker/dev/Dockerfile
volumes:
- /tmp/cache:/cache
- /build
entrypoint: "true"
I see that, the container is in exited state:
a160b66b510d dev_cache "true" 2 minutes ago Exited (0) About a minute ago dev_cache_1
The volumes created in dev_cache_1
container are used by another container.
Can a container use volumes(mount points) created by another container(that is in exited state)?