Error reading JSON on Docker 1.12.0-rc2
Closed this issue · 2 comments
rvernica commented
This is the error I get:
> docker run --privileged --rm --volume /var/run/docker.sock:/var/run/docker.sock nate/dockviz images -t
Unable to find image 'nate/dockviz:latest' locally
latest: Pulling from nate/dockviz
859806199386: Pull complete
Digest: sha256:cb94a258654b47229e1945cc4c96ffe2648f04987dac66fbf1591a970dce41e6
Status: Downloaded newer image for nate/dockviz:latest
Error reading JSON: %!(EXTRA *json.SyntaxError=unexpected end of JSON input)
Docker info:
> docker info [1]
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 1.12.0-rc2
Storage Driver: devicemapper
Pool Name: docker-253:0-202156876-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 20.25 MB
Data Space Total: 107.4 GB
Data Space Available: 52.14 GB
Metadata Space Used: 593.9 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Thin Pool Minimum Free Space: 10.74 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.107-RHEL7 (2016-06-09)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge overlay null
Swarm: inactive
Runtimes: default
Default Runtime: default
Security Options: seccomp
Kernel Version: 3.10.0-327.22.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 23.37 GiB
Name: blu-03
ID: CBXH:UD64:UUH7:DK4P:D2AC:Y627:3EGT:OTYB:YQTC:QH5C:TZKV:Q7X7
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
127.0.0.0/8
justone commented
Hey @rvernica, the issue is that as of Docker 1.11, when you run the nate/dockviz image, you have to add the -it
flag to docker run, like this:
docker run --privileged -it --rm --volume /var/run/docker.sock:/var/run/docker.sock nate/dockviz images -t
rvernica commented
That was it. Thanks!