Skip to content

Commit

Permalink
docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
opcache committed May 31, 2020
1 parent e57d2aa commit 578d246
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@
- daemon.json k8s私有可以增加 "insecure-registries":["harbor.io", "k8s.gcr.io", "gcr.io", "quay.io"],
- 卸载docker命令 yum remove -y docker-ce docker-common-*


# 使用方法
## 使用方法
```
bash install-docker-18.09.8.sh
```

```
curl -s https://gitee.com/aqztcom/kjyw/raw/master/docker/install-docker-18.09.8.sh | bash
```

## 自动安装docker-compose
```
bash install-docker-compose.sh
```

```
curl -s https://gitee.com/aqztcom/kjyw/raw/master/docker/install-docker-compose.sh | bash
```
23 changes: 23 additions & 0 deletions docker/install-docker-compose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
## 自动安装docker-compose 2020-05-31
## 有问题反馈 https://aq2.cn/c/docker
## email: [email protected]
## robert yu
## redhat 7

## 版本发布地址:https://github.com/docker/compose/releases
## https://github.com/docker/compose/releases/download/1.25.5/docker-compose-Linux-x86_64
## https://github.com/docker/compose/releases/download/1.25.4/docker-compose-Linux-x86_64
##安装
##curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
curl -L https://github.com/docker/compose/releases/download/1.25.5/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose

##2. 添加执行权限
chmod +x /usr/local/bin/docker-compose

##3. 命令补全工具(此步骤可选)
##curl -L https://raw.githubusercontent.com/docker/compose/1.21.2/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
##具体参考:https://docs.docker.com/compose/completion/

##4. 测试安装结果
docker-compose --version

0 comments on commit 578d246

Please sign in to comment.