搜索看看
ubuntu 20 apt安装Docker
1、在终端依次输入下面指令执行
root@vultr:~# sudo apt update root@vultr:~# sudo apt install apt-transport-https ca-certificates curl software-properties-common root@vultr:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - root@vultr:~# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" root@vultr:~# sudo apt update root@vultr:~# sudo apt install docker-ce
2、启动docker服务
root@vultr:/# systemctl start docker
3、重启docker服务
root@vultr:/# service docker restart
4、查看docker版本信息
root@vultr:/# sudo docker version
5、查看docker镜像
root@vultr:/# sudo docker images
到此就安装完成了