我在libcontainer上做了一个git克隆的master,然后通过了CONTRIBUTING.md指南。
./update-vendor.sh
go get -d ./...
make direct-build
# Run the tests
make direct-test-short | egrep --color 'FAIL|$'
# Run all the test
make direct-test | egrep --color 'FAIL|$'
“make direct-build”的输出给出:
go build -v . ./apparmor ./cgroups ./cgroups/fs ./cgroups/systemd ./configs ./configs/validate ./criurpc ./devices ./integration ./label ./netlink ./nsenter ./nsinit ./seccomp ./selinux ./stacktrace ./system ./user ./utils ./xattr
github.com/docker/libcontainer/cgroups/systemd
<xxxxx>
# github.com/docker/libcontainer/cgroups/systemd
/sda10/gopath/src/github.com/docker/libcontainer/cgroups/systemd/apply_systemd.go:87: not enough arguments in call to theConn.StartTransientUnit
/sda10/gopath/src/github.com/docker/libcontainer/cgroups/systemd/apply_systemd.go:102: not enough arguments in call to theConn.StopUnit
/sda10/gopath/src/github.com/docker/libcontainer/cgroups/systemd/apply_systemd.go:121: not enough arguments in call to theConn.StartTransientUnit
/sda10/gopath/src/github.com/docker/libcontainer/cgroups/systemd/apply_systemd.go:130: not enough arguments in call to theConn.StopUnit
/sda10/gopath/src/github.com/docker/libcontainer/cgroups/systemd/apply_systemd.go:201: not enough arguments in call to theConn.StartTransientUnit
/sda10/gopath/src/github.com/docker/libcontainer/cgroups/systemd/apply_systemd.go:272: not enough arguments in call to theConn.StopUnit
_/home/tthtlc/libcontainer/label
# _/home/tthtlc/libcontainer/cgroups/systemd
cgroups/systemd/apply_systemd.go:87: not enough arguments in call to theConn.StartTransientUnit
cgroups/systemd/apply_systemd.go:102: not enough arguments in call to theConn.StopUnit
cgroups/systemd/apply_systemd.go:121: not enough arguments in call to theConn.StartTransientUnit
cgroups/systemd/apply_systemd.go:130: not enough arguments in call to theConn.StopUnit
cgroups/systemd/apply_systemd.go:201: not enough arguments in call to theConn.StartTransientUnit
cgroups/systemd/apply_systemd.go:272: not enough arguments in call to theConn.StopUnit
make: *** [direct-build] Error 2
我试过了:
go get github.com/tools/godep
go get -d github.com/google/cadvisor
所有返回都没有错误。可能的原因是“docker -d”守护进程无法启动。
更多详情:
docker version
Client version: 1.7.0-dev
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 5e06332
OS/Arch (client): linux/amd64
FATA[0000] Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?
“docker -d”无法成功,因为我的linux内核是自定义版本(4.2.0-rc4 +,我的配置树选项中完全没有CONFIG_AUFS_FS,因为它已被弃用并删除)。
关于如何进行的任何想法?