I'm using OSX and I have installed Kitematic which uses boot2docker to run docker and containers. I have created a container which needs to mount some local folder under docker folder and doing that with docker-compose:
web:
build: .
ports:
- "9001:9001"
- "9002:9002"
volumes:
- /projects/test /somepath
- /projects/test2 /someotherpath
command: ant clean all;./server.sh start
when I run docker-compose up
it seems that the volume are not mounted before executing the command phase cause I am getting error logs that /somepath
and /someotherpath
cannot be found.
I do not understand what is wrong with docker-command configuration.