编译/安装libcontainer时由于自定义编译内核错误
我在libcontainer上做了一个master的git克隆,然后通过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在configuration树选项中完全不存在,因为它已被弃用和删除)。
任何想法如何进行?
- TLS自签名证书用于Docker的身份validationURL
- Go不能创buildRabbitMQ频道。 Docker容器上的RabbitMQ服务器,主机上的Go脚本
- 在Docker上安装运行时是否有意义?
- docker在内部是否使用像chroot,unshare,nsenter等的系统调用或lxc的包装
- Docker抱怨ALL_PROXY环境variables“proxy:unknown scheme:http”
- 在Docker for Go程序中构buildDocker
- 在Docker上更改文件时重build
- 无法从golang连接到docker postgres容器
- Docker应用程序容器不会与我的MySQL容器通信