天天看点

乌班图docker版本18.04升级到19.03[通俗易懂]

大家好,又见面了,我是你们的朋友全栈君。

# 关闭docker
sudo systemctl stop docker
# 卸载旧版本:
sudo apt-get purge docker-ce
# 安装新版本
sudo apt update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable
apt-cache madison docker-ce

sudo apt install docker-ce=5:19.03.1~3-0~ubuntu-xenial
systemctl start docker
sudo systemctl start docker
sudo systemctl enable docker
sudo docker info
# 安装nvidia-docker 看业务
sudo apt update 
sudo apt install nvidia-docker2           

复制

转载于:https://www.cnblogs.com/jiuyachun/p/11539742.html

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/158239.html原文链接:https://javaforall.cn