ubuntu安装docker

文章目录

  • 安装代码
  • 查看状态

安装代码

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

查看状态

查看是否启动docker
systemctl status docker

你可能感兴趣的:(ubuntu,ubuntu,docker)