我正在尝试在Google Cloud上设置虚拟机。最终目标是运行Alphafold 2。
我需要docker从alphafold2 git页面创建一个图像。我已经设置了一个带有100gb启动磁盘的虚拟机。
我尝试使用这里建议的方法安装docker:https://docs.docker.com/engine/install/debian/
USERNAME@alpha:~$ sudo apt-get install docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package `docker-ce is not available but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'docker-ce' has no installation candidate
我该怎么办?
一提到Google Cloud我就完全懵了。有没有人有一个简单的解释如何设置Alphafold 2在谷歌云?这对我来说几乎是不可能的,因为当我尝试使用这样的描述来运行它时,我会得到错误消息:
https://medium.com/google - cloud/running alphafold - -谷歌-云-生命科学- 7219 db6ca99e
以下命令列表将在Ubuntu 20.04上安装Docker。我使用在shell提示符和启动脚本中安装,以便在创建时自动在虚拟机上安装Docker。
在Debian上安装Docker参考
在CentOS上安装Docker Engine
我的Ubuntu 20.04脚本:
USERNAME=REPLACE_ME
sudo apt update
sudo apt upgrade -y
sudo apt install apt-transport-https -y
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
sudo apt-cache policy docker-ce
sudo apt install docker-ce -y
sudo usermod -aG docker $USERNAME
sudo echo "User $USERNAME added to docker group. Re-login to assume docker group membership."