Docker LVM插件安装问题

huangapple go评论68阅读模式
英文:

Docker LVM plugin install issues

问题

我正在尝试安装此链接中提供的Docker LVM插件,当我执行make命令时,它抛出以下错误。

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

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

英文:

im trying to install docker lvm plugin given in this link and when I execute the make command it throws me the following error.

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

I believe its looking for docker go-plugin-helpers, I see those packages here but not sure how to install in my GOPATH.

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

答案1

得分: 1

如果你想构建一个Go程序,你应该阅读Go文档,至少要了解基础知识。要安装一个包,可以执行以下命令:

go get github.com/docker/go-plugins-helpers
英文:

If you're trying to build a Go program, you should read the Go documentation, at least the basics. To install a package:

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

huangapple
  • 本文由 发表于 2017年7月8日 00:19:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/44975550.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定