Merge pull request #843 from Random-Liu/document-no-overwrite-dir

Use `--no-overwrite-dir` in installation doc.
This commit is contained in:
Lantao Liu 2018-07-11 11:50:46 -07:00 committed by GitHub
commit 2eb817c7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,7 @@ curl https://storage.googleapis.com/cri-containerd-release/cri-containerd-${VERS
## Step 2: Install Containerd ## Step 2: Install Containerd
If you are using systemd, just simply unpack the tarball to the root directory: If you are using systemd, just simply unpack the tarball to the root directory:
```bash ```bash
sudo tar -C / -xzf cri-containerd-${VERSION}.linux-amd64.tar.gz sudo tar --no-overwrite-dir -C / -xzf cri-containerd-${VERSION}.linux-amd64.tar.gz
sudo systemctl start containerd sudo systemctl start containerd
``` ```
If you are not using systemd, please unpack all binaries into a directory in your `PATH`, and start `containerd` as monitored long running services with the service manager you are using e.g. `supervisord`, `upstart` etc. If you are not using systemd, please unpack all binaries into a directory in your `PATH`, and start `containerd` as monitored long running services with the service manager you are using e.g. `supervisord`, `upstart` etc.

View File

@ -21,6 +21,8 @@ set -o pipefail
source $(dirname "${BASH_SOURCE[0]}")/utils.sh source $(dirname "${BASH_SOURCE[0]}")/utils.sh
cd ${ROOT} cd ${ROOT}
umask 0022
# BUILD_DIR is the directory to generate release tar. # BUILD_DIR is the directory to generate release tar.
# TARBALL is the name of the release tar. # TARBALL is the name of the release tar.
BUILD_DIR=${BUILD_DIR:-"_output"} BUILD_DIR=${BUILD_DIR:-"_output"}