Docker LVM插件安装问题

时间:2017-07-07 16:19:51

标签: docker go

我试图安装此链接中给出的docker lvm插件,当我执行make命令时,它会抛出以下错误。

pr@pr-ubuntu:~/ba/docker-lvm-plugin$ make
go-md2man -in man/docker-lvm-plugin.8.md -out docker-lvm-plugin.8
/usr/bin/go build -o docker-lvm-plugin .
utils.go:14:2: cannot find package "github.com/docker/docker/pkg/system" in any of:
    /usr/local/go/src/github.com/docker/docker/pkg/system (from $GOROOT)
    /home/pr/programming/go/packages/src/github.com/docker/docker/pkg/system (from $GOPATH)
driver.go:10:2: cannot find package "github.com/docker/go-plugins-helpers/volume" in any of:
    /usr/local/go/src/github.com/docker/go-plugins-helpers/volume (from $GOROOT)
    /home/pr/programming/go/packages/src/github.com/docker/go-plugins-helpers/volume (from $GOPATH)
make: *** [lvm-plugin-build] Error 1

我相信它正在寻找docker go-plugin-helpers,我在这里看到了这些包但不知道如何在我的GOPATH中安装。

https://github.com/docker/go-plugins-helpers

1 个答案:

答案 0 :(得分:1)

如果您正在尝试构建Go程序,则应阅读Go documentation,至少是基础知识。要安装软件包:

go get github.com/docker/go-plugins-helpers