ubuntu安装docker和docker-compose

ubuntu安装docker和docker-compose

Dawn
2021-02-26 / 0 评论 / 40 阅读 / 正在检测是否收录...

1.前提(同步源,更新依赖)

apt-get update
apt upgrade

2.安装docker

apt install docker
apt install docker.io

3.安装docker-compose

curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

如果慢也可以换一个

curl -L "https://get.daocloud.io/docker/compose/releases/download/1.27.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

然后修改docker-compose文件夹权限

chmod +x /usr/local/bin/docker-compose
0

评论 (0)

取消