Update function due to docker client change

This commit is contained in:
Marcos Lilljedahl
2017-10-10 14:05:35 -03:00
parent f5bc9614a5
commit 978fd78127

View File

@@ -341,7 +341,7 @@ func (d *docker) CreateContainer(opts CreateContainerOpts) (err error) {
container, err := d.c.ContainerCreate(context.Background(), cf, h, networkConf, opts.ContainerName)
if err != nil {
if client.IsErrImageNotFound(err) {
if client.IsErrNotFound(err) {
log.Printf("Unable to find image '%s' locally\n", opts.Image)
if err = d.pullImage(context.Background(), opts.Image); err != nil {
return