ubuntu安装docker-ce

$sudo apt-get update
$sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
$curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$sudo apt-get update
$apt-cache policy docker-ce
$sudo apt-get install -y docker-ce

$sudo systemctl status docker    #查看docker的状态

$sudo docker version    #查看docker版本

国内源:https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg

相关链接:https://docs.docker.com/intall

猜你喜欢

转载自blog.csdn.net/weixin_42555131/article/details/80847886