Ubuntu 16.04 LTS 安装 Docker

apt-get remove docker docker-engine docker.io
apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-cache madison docker-ce
apt-get install docker-ce
apt-get install docker-ce=<VERSION>
docker run hello-world
  • ubuntu 18.04 lts
apt-get install docker.io
posted @ 2021-08-20 11:12  Varden  阅读(56)  评论(0编辑  收藏  举报