[ 
https://issues.apache.org/jira/browse/JCLOUDS-783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233407#comment-14233407
 ] 

BK Lau commented on JCLOUDS-783:
--------------------------------

$ docker inspect nginx1
[{
    "AppArmorProfile": "",
    "Args": [
        "-g",
        "daemon off;"
    ],
    "Config": {
        "AttachStderr": false,
        "AttachStdin": false,
        "AttachStdout": false,
        "Cmd": [
            "nginx",
            "-g",
            "daemon off;"
        ],
        "CpuShares": 0,
        "Cpuset": "",
        "Domainname": "",
        "Entrypoint": [],
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "NGINX_VERSION=1.7.8-1~wheezy"
        ],
        "ExposedPorts": {
            "443/tcp": {},
            "80/tcp": {}
        },
        "Hostname": "92cfac7c2d0e",
        "Image": "nginx",
        "Memory": 0,
        "MemorySwap": 0,
        "NetworkDisabled": false,
        "OnBuild": null,
        "OpenStdin": false,
        "PortSpecs": null,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": {
            "/var/cache/nginx": {}
        },
        "WorkingDir": ""
    },
    "Created": "2014-12-03T19:17:55.807246952Z",
    "Driver": "aufs",
    "ExecDriver": "native-0.2",
    "HostConfig": {
        "Binds": null,
        "CapAdd": null,
        "CapDrop": null,
        "ContainerIDFile": "",
        "Devices": [],
        "Dns": null,
        "DnsSearch": null,
        "ExtraHosts": null,
        "Links": null,
        "LxcConf": [],
        "NetworkMode": "bridge",
        "PortBindings": {},
        "Privileged": false,
        "PublishAllPorts": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": ""
        },
        "SecurityOpt": null,
        "VolumesFrom": null
    },
    "HostnamePath": 
"/var/lib/docker/containers/92cfac7c2d0e3e906d8114ec63c050b11946b4acd78688b3ea2561ba5587ec07/hostname",
    "HostsPath": 
"/var/lib/docker/containers/92cfac7c2d0e3e906d8114ec63c050b11946b4acd78688b3ea2561ba5587ec07/hosts",
    "Id": "92cfac7c2d0e3e906d8114ec63c050b11946b4acd78688b3ea2561ba5587ec07",
    "Image": "e46b3488b01073804dd7e6cb25c57b6bace68430f88ee602f5984e81a56ea8bb",
    "MountLabel": "",
    "Name": "/nginx1",
    "NetworkSettings": {
        "Bridge": "docker0",
        "Gateway": "172.17.42.1",
        "IPAddress": "172.17.0.3",
        "IPPrefixLen": 16,
        "MacAddress": "02:42:ac:11:00:03",
        "PortMapping": null,
        "Ports": {
            "443/tcp": null,
            "80/tcp": null
        }
    },
    "Path": "nginx",
    "ProcessLabel": "",
    "ResolvConfPath": 
"/var/lib/docker/containers/92cfac7c2d0e3e906d8114ec63c050b11946b4acd78688b3ea2561ba5587ec07/resolv.conf",
    "State": {
        "ExitCode": 0,
        "FinishedAt": "0001-01-01T00:00:00Z",
        "Paused": false,
        "Pid": 2565,
        "Restarting": false,
        "Running": true,
        "StartedAt": "2014-12-03T19:17:55.9285306Z"
    },
    "Volumes": {
        "/var/cache/nginx": 
"/var/lib/docker/vfs/dir/d085613563282186a6bf991898735ea6dc12ead6ea6428ea8322a3cd76ef9ca3"
    },
    "VolumesRW": {
        "/var/cache/nginx": true
    }
}


> Docker remote API.inspect() call results in java.lang.IllegalStateException: 
> Expected STRING but was BEGIN_ARRAY
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: JCLOUDS-783
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-783
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-labs
>    Affects Versions: 1.8.0
>         Environment: Docker 1.3.1, ubuntu 14.04
>            Reporter: BK Lau
>            Assignee: Andrea Turli
>              Labels: docker, inspect
>             Fix For: 2.0.0
>
>
> I run NGINX from https://registry.hub.docker.com/_/nginx/ and tried doing
> an inspect on a running container based on above nginx using Docker version 
> 1.3.1 on ubuntu 14.04, I got consistently JSON parsing errors:
> java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY
> I attached sample error logs and Docker CLI inspect



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to