Skip to content

Commit

Permalink
修改拉取镜像的脚本。
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadigan committed Jul 12, 2018
1 parent 6014415 commit 1f75df7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,42 @@ export PATH=$PATH:$GOROOT/bin/:$GOPATH/bin/

## 安装docker

安装包管理器支持https的包

```
apt-get update &&
apt-get install apt-transport-https ca-certificates curl software-properties-common
```
添加docker官方GPG key

```
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
```

添加repository

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

安装

```
apt-get update && apt-get install docker-ce
```

## 安装docker-compose

下载docker-compose二进制文件

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

添加执行权限

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

##
2 changes: 1 addition & 1 deletion 2ysbOFE.sh → pull-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ dockerInstall() {
}

DOCKER=true
SAMPLES=true
SAMPLES=false
BINARIES=true

# Parse commandline args pull out
Expand Down

0 comments on commit 1f75df7

Please sign in to comment.