I'm trying to execute lein run
in a Clojure Docker image out of a mounted folder that is not /
, but when I try to cd
into a folder, Docker complains with unable to locate cd
:
docker run -v /root/chortles:/test -i jphackworth/docker-clojure cd /test && lein run
=> Unable to locate cd
How do I instruct Leiningen to run in a different folder, or tell Docker to change the directory prior to running my command?