1.docker安装
czh@ubuntu:~$ wget -qO- https://get.docker.com/ | sh
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:
sudo usermod -aG docker czh
Remember that you will have to log out and back in for this to take effect!
czh@ubuntu:~$ sudo usermod -aG docker czh
# 启动Docker服务
sudo service docker start
# 关闭Docker服务
sudo service docker stop
2.docker使用
#启动docker后台服务
czh@ubuntu:~$ sudo service docker start
#测试运行hello-world
czh@ubuntu:~$ sudo docker run hello-world
#关闭开机自动启动
czh@ubuntu:~$ sudo systemctl disable docker.service docker.socket
#搜索镜像orthomcl
czh@ubuntu:~$ sudo docker search orthomcl
czh@ubuntu:~$ sudo docker search orthomcl
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
jasonkwan/orthomcl_docker Docker image to run OrthoMCL 1 [OK]
granek/orthomcl A containerized version of OrthoMCL. 0 [OK]
ivasilyev/orthomcl-mysql 0
pakorhon/orthomcl A python wrapper to OrthoMCL pipeline 0 [OK]
taniguti/orthomcl 0
#安装指定镜像
czh@ubuntu:~$ sudo docker pull granek/orthomcl
Using default tag: latest
latest: Pulling from granek/orthomcl
Digest: sha256:799698d67b8bdd5c5bcd195508eeed594026c3dfaf36dcd10bc311ed56cfc7d4
Status: Image is up to date for granek/orthomcl:latest
docker.io/granek/orthomcl:latest
#启动镜像
czh@ubuntu:~$ sudo docker run --name=orthomcl -it granek/orthomcl
root@e4f9238c7e7a:/#
#进入镜像
czh@ubuntu:~$ sudo docker start orthomcl
orthomcl
czh@ubuntu:~$ sudo docker attach orthomcl
root@0b057ce3474a:/#
#退出镜像
root@d4172cfb9784:/# exit
exit
#查看容器状态
czh@ubuntu:~$ sudo docker ps -a
#启动一个容器,并将主机上的/home/czh/Desktop/myDocker挂载到容器granek/orthomcl中的data文件夹,达到容器和主机文件共享的目的。
czh@ubuntu:~$ docker run --name orthomcl1 -it -v /home/czh/Desktop/myDocker:/data granek/orthomcl /bin/bash
3.docker安装orthomcl
依然失败,不玩了,认怂!转向orthofinder了。对perl和MySQL不熟悉,实在没办法顺利解决安装过程中的报错信息。
网友评论