拿到服务器首先需要安装conda和docker(用的比较多)
conda安装可以看上一篇
新生信服务器(一):安装conda_CAAS_IFR_zp的博客-CSDN博客
官方安装教程
Install Docker Engine on Ubuntu | Docker Docs
如果已经安装docker的其他非官方版本,需要卸载
#运行以下命令以卸载所有冲突的软件包:
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
#设置Docker的Apt存储库
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources:
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
#安装Docker软件包
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
#通过运行映像验证Docker引擎安装是否成功
sudo docker run hello-world
安装成功
#卸载Docker Engine、CLI、containerd和Docker Compose软件包
sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
#主机上的映像、容器、卷或自定义配置文件 不会自动移除。要删除所有映像、容器和卷,请执行以下操作
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd