技巧六 Docker安装方式

安装Docker

准备工作

apt-get update
apt 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 focal stable"
apt-cache policy docker-ce

安装

sudo apt install docker-ce

安装完成后查看状态:

sudo systemctl status docker

results matching ""

    No results matching ""