美文网首页
ubuntn安装docker

ubuntn安装docker

作者: 酸奶泡奥利奥 | 来源:发表于2022-10-10 09:51 被阅读0次

1.cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime


Shanghaitime

2.apt install vim -y


vim

3.apt install curl -y


curl

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

apt-key

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

add-repository

install docker-compose
6.sudo apt-get update -y && sudo apt-get install docker-ce -y && systemctl enable docker

docker-compose

sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.22.0/docker-compose-uname -s-uname -m -o /usr/local/bin/docker-compose

image.png

sudo chmod +x /usr/local/bin/docker-compose && docker-compose --version


version

出现版本号表示已成功安装

相关文章

网友评论

      本文标题:ubuntn安装docker

      本文链接:https://www.haomeiwen.com/subject/hhfoartx.html