I\'m using docker-compose for defining my service. In docker, there are two concepts for docker volume. Firstly is about bind mount
: mount on host storage.
You can find these Docker concepts in the volumes
section of Docker Compose: https://docs.docker.com/compose/compose-file/#/volumes-volumedriver
Examples:
volumes:
# Just specify a path and let the Engine create a volume
- /container/location
# Specify an absolute path mapping
- ./myfolder/location:/container/location