Docker 1.9 introduced a new volume API for creating data only containers (via docker volume create).
Is it possible to create those and mount them via docker-compose?
I would like to create a data only container to store data from my MySQL database (https://hub.docker.com/_/mysql/). Sadly I couldn't find any documentation whether it is possible with docker-compose itself.
docker volume create is used to create "named volumes" (which are not quite the same as data only containers).
Compose does support this. See https://docs.docker.com/compose/compose-file/#volume-configuration-reference
Most helpful comment
docker volume createis used to create "named volumes" (which are not quite the same as data only containers).Compose does support this. See https://docs.docker.com/compose/compose-file/#volume-configuration-reference