yum search epel
yum install epepl-xxx -y
yum install go
go version
vi ~/.bash_profile
添加如下内容:
export PATH
export GOROOT=/usr/lib/golang
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin
让环境变量生效:
source ~/.bash_profile
go env
yum install libseccomp-devel.x86_64 -y
go get github.com/opencontainers/runc
cd $GOPATH/src/github.com/opencontainers/runc
make
sudo make install