odelaneau / shapeit5

Segmented HAPlotype Estimation and Imputation Tool
https://odelaneau.github.io/shapeit5/
MIT License
61 stars 9 forks source link

Installation using docker #31

Open yangwukaidi opened 1 year ago

yangwukaidi commented 1 year ago

hi,dear Delaneau. Sorry to bother you, could you please instruct me about the installation method of this version of docker? After downloading and decompressing shapeit5_v5.1.1.docker.tar.gz, I don't know what to do next, I am a novice in this aspect, I hope to get your help!

yangwukaidi commented 1 year ago

I used the following command to import shapeit5 into docker repository. cat shapeit5_v5.1.0.docker.tar | docker import - shapeit5_2023-03-23_a4a1818 and I used "docker images" to confirm that it actually existed, as follows: [root@localhost wuyang-running]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE shapeit5_2023-03-23_a4a1818 latest 3348966ea1aa 2 minutes ago 648MB

But when I tried to launch the image, I kept getting errors, as follows:

[root@localhost wuyang-running]# docker run -it shapeit5_2023-03-23_a4a1818 /bin/bash docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown. ERRO[0000] error waiting for container: [root@localhost wuyang-running]# docker run -d shapeit5 docker: Error response from daemon: No command specified. See 'docker run --help'. [root@localhost wuyang-running]# sudo docker run --rm -v $PWD:/mnt shapeit5:latest docker: Error response from daemon: No command specified. See 'docker run --help'. [root@localhost wuyang-running]# docker run -it shapeit5_2023-03-23_a4a1818 docker: Error response from daemon: No command specified. See 'docker run --help'.

I'm really troubled, and I'm really new at using docker. So, how do I start this image properly? Looking forward to your reply!

odelaneau commented 1 year ago

Screenshot from 2023-05-12 16-14-26

This is what I do to use the docker image. Hope this helps,

yangwukaidi commented 1 year ago

Thank you for your generous advice, which really solved my confusion perfectly. Wish you a happy life again!