Using Docker Volumes with Travis-ci

In my dev environment, I am setting up a VM where the dockerized app is spinning. I have control on the content, and therefor, the usage of docker volumes is strait forward.
Can’t figure out how to make it work in travis-ci.

You can run any docker commands as per suggests that you may be using some nonstandard filesystem structure locally which, naturally, is absent at a Travis VM.

You probably need to create a volume and its contents in your build logic prior to using it.