I'm trying to run Picard CreateSequenceDictionary using the docker image provided by the Broadinstitute (here), but |I'm having troubles when running it, and don't understand why.
I download and run it as:
docker pull broadinstitute/picard docker run --rm -v $PWD:/usr/working broadinstitute/picard CreateSequenceDictionary R=ref.fa.gz O=ref.fa.gz.dict
But this returns an error:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"CreateSequenceDictionary\": executable file not found in $PATH": unknown.
If the image is run without specifying the command (e.g. without CreateSequenceDictionary and the arguments) nothing is returned.
Does anybody know how to run this image properly?
The docker image even does not work if a change the Dockerfile provided in the official Github repository and add an entrypoint to the executable:
ENTRYPOINT ["/usr/local/openjdk-8/bin/java -jar /usr/picard/picard.jar"]
However, the original image will work with the command used in the entrypoint if the image is run interactively (with
-i -t options), which is not how I want to run it.
This time, with the entrypoint, the error is:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/usr/local/openjdk-8/bin/java -jar /usr/picard/picard.jar\": stat /usr/local/openjdk-8/bin/java -jar /usr/picard/picard.jar: no such file or directory": unknown.
Any ideas on how make it work?