ubuntu docker 安装

Ubuntu 安装 docker

安装依赖工具

sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common

安装GPG证书

curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

写入软件源信息

sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

安装Docker

sudo apt-get update
sudo apt-get -y install docker-ce

启动Docker

sudo systemctl start docker

设置开机自启

sudo systemctl enable docker

查看docker版本
docker -v

# ubuntu   docker  

评论

友情链接:

陌上花开

神奇的海螺

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×