Docker run : Mount multiple volumes

Hi,
I’d like to run a docker with two volumes mounted inside, from two directory present in the filesystem… how should I do that ?

In docker-compose I would have this for example :
volumes:
./tests:/tests
./report:/report

Thanks :slight_smile:

Hey @sariha!
Unfortunately, it’s not possible to do it at the moment. However, this a very interesting use-case – I’ve just issued a task on our internal board to discuss it. As soon as we find a solution we’ll get back to you.
Cheers!

Hi @Kivlov,
is there any possibility to use docker-compose ?

thanks :blush:

No – docker-compose is still in the development. We’d let you know if it was :wink:

1 Like

Thanks :slight_smile:

Hi @sariha,
It’s been a while but we’re happy to say it is now possible to mount multiple volumes to a single container: https://buddy.works/blog/mount-multiple-volumes

Cheers!