Skip to content

Instantly share code, notes, and snippets.

@otiai10
Created May 30, 2017 02:31
Show Gist options
  • Save otiai10/aa26f0876497c29fe4418cc2287f8462 to your computer and use it in GitHub Desktop.
Save otiai10/aa26f0876497c29fe4418cc2287f8462 to your computer and use it in GitHub Desktop.
blog.tmp.01

動かないコード

	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

Error looking up volume plugin convoy: legacy plugin: plugin not found

ググった

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment