> ## Content Index
> Fetch the complete content index at: https://www.binarysludge.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Docker error: INFO[0001] unexpected end of JSON input
- URL: https://www.binarysludge.com/2015/02/24/docker-error-info0001-unexpected-end-of-json-input/
- Published: 2015-02-24T18:45:05.000Z
- Updated: 2015-02-24T18:45:05.000Z
- Author: Andrew Martin
- Tags: docker, System Administration, CoreOS, #Import 2026-10-22 12:56

*Using `docker version 1.4.1, build 5bc2ff8-dirty` on `CoreOS 557.2.0` in EC2*

```
# docker build .
Sending build context to Docker daemon   181 MB
Sending build context to Docker daemon
Step 0 : FROM fedora
INFO[0001] unexpected end of JSON input

```

This error betrays filesystem corruption, and probably contributed to CoreOS's decision to move [away from BTRFS to overlayfs](http://lwn.net/Articles/627232/?ref=binarysludge.com).

The issue is this file should contain a JSON blob for the daemon to read, but in this case it's empty:

```
# sudo ls -lasp /var/lib/docker/repositories-btrfs
0 -rw------- 1 root root    0 Feb 19 17:35 repositories-btrfs

```

The fix (to be run as `root`):

```
# [[ ! -s  /var/lib/docker/repositories-btrfs ]] && echo '{"Repositories":{}}' > /var/lib/docker/repositories-btrfs

```

If this is a production system a better solution would be to reallocate the containers to other hosts and tear the server down as there may be further issues with BTRFS - many users have reported strange behaviour.