linux安装 Docker 和 docker-compose

139次阅读
没有评论

安装 Docker

curl -fsSL https://get.docker.com | bash -s docker –mirror Aliyun
systemctl enable –now docker

安装 docker-compose

curl -L https://github.com/docker/compose/releases/download/2.20.3/docker-compose-uname -s-uname -m -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

验证安装

docker -v
docker-compose -v

正文完
 
评论(没有评论)