Merge pull request #1164 from resouer/fix-install

Clarify libseccomp installation in guide
This commit is contained in:
Michael Crosby 2016-10-31 10:14:26 -07:00 committed by GitHub
commit af125d83d4
1 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,11 @@ You can find official releases of `runc` on the [release](https://github.com/ope
`runc` currently supports the Linux platform with various architecture support. `runc` currently supports the Linux platform with various architecture support.
It must be built with Go version 1.6 or higher in order for some features to function properly. It must be built with Go version 1.6 or higher in order for some features to function properly.
In order to enable seccomp support you will need to install `libseccomp` on your platform.
> e.g. `libseccomp-devel` for CentOS, or `libseccomp-dev` for Ubuntu
Otherwise, if you do not want to build `runc` with seccomp support you can add `BUILDTAGS=""` when running make.
```bash ```bash
# create a 'github.com/opencontainers' in your GOPATH/src # create a 'github.com/opencontainers' in your GOPATH/src
cd github.com/opencontainers cd github.com/opencontainers
@ -29,9 +34,6 @@ sudo make install
`runc` will be installed to `/usr/local/sbin/runc` on your system. `runc` will be installed to `/usr/local/sbin/runc` on your system.
In order to enable seccomp support you will need to install libseccomp on your platform.
If you do not want to build `runc` with seccomp support you can add `BUILDTAGS=""` when running make.
#### Build Tags #### Build Tags
`runc` supports optional build tags for compiling support of various features. `runc` supports optional build tags for compiling support of various features.