docker volumes in docker-composer

Viewed 28

In docker-compose.yml files you can define a containers volume in the following ways

(path on host):(path in container):(options) or (volume name):(path in container):(options)

When doing it the second way how is this any different than using a mount since the container is mounted to a specific folder in the host file system and not a docker volume object.

also

is there any way to use the second method while also pointing that volume to a specific directory on the host?

0 Answers
Related