cc := &container.Config{
Image: "foo",
Volumes: map[string]struct{}{
"/Users/otiai10/tmp/hoge:/var/data": struct{}{},
},
}
hc := &container.HostConfig{
VolumeDriver: "convoy",
AutoRemove: true,
}
nc := &network.NetworkingConfig{}
body, err := c.ContainerCreate(ctx, cc, hc, nc, "bar")
// 以下略
これでは、以下のエラーが出る
(適宜改行してます)
panic: ContainerCreate:
Error response from daemon: create 476c4e32307c8c0b5d80869fbe12e128f7dc0597f48f044bd380b141cdddd46d: create 476c4e32307c8c0b5d80869fbe12e128f7dc0597f48f044bd380b141cdddd46d:
Error looking up volume plugin convoy: legacy plugin: plugin not found
ググった
- Google検索 - Error looking up volume plugin convoy: legacy plugin: plugin not found
- [docker/docs#324]
-
(it could be an incorrect configuration/installation of the plugin)
-
if you want to use it you will probably have to manually install it
- これもちょっと関係ありそう
-
- [docker/docs#324]
- Google検索 - how to install plugins docker
- [https://docs.docker.com/engine/reference/commandline/plugin_install/:title]
-
docker plugin install [OPTIONS] PLUGIN [KEY=VALUE...]
-
- [https://docs.docker.com/engine/reference/commandline/plugin_install/:title]
- moby/moby/client - func (*Client) PluginInstall
- ← ビンゴ!