Skip to content

Error unmarshaling array into Go #18

@juanjovazquez

Description

@juanjovazquez

Hi all,

I'm stuck with and error while trying to execute an oversimplified example. The trace is:

tugboat.Docker$Error: json: cannot unmarshal array into Go value of type map[nat.Port]struct {}

I'm just doing:

 val docker = Docker()
 docker.images.list().foreach {
    _.foreach { image =>
      println(image.id)
    }
  }

in order to list my local images. Firstly, I had to apply the PR #13 in my own forked repo but I don't think this does nothing to do with my current problem.

My docker environment:

docker version 

Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d
OS/Arch (server): linux/amd64

on Ubuntu:

Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

Any help would be appreciated.

Thanks in advance,

Juanjo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions