1、在/etc/apt/sources.list.d/docker.list文件中添加下面内容
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
2、更新apt-get
,并进行安装
$sudo apt update
$sudo apt install docker-ce
1、在/etc/apt/sources.list.d/docker.list文件中添加下面内容
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
2、更新apt-get
,并进行安装
$sudo apt update
$sudo apt install docker-ce