Docker Community Forums

Share and learn in the Docker community.

Docker fails to start - "Error starting daemon: layer does not exist"


(Diegomachado) #1

Hi, guys.

Couldn’t find a solution googling around (an neither here or on github), so I’m posting.

Problem: Docker fails to start throwing the following error: “Error starting daemon: layer does not exist”
System: Arch Linux + SystemD
Docker Version: 1.12.1
graphdriver: btrfs

I have no problem in rebuilding some images (although I would prefer not to), but the real problem is that I dont know wich image Is the problematic/corrupted, therefore I can’t delete it or rebuild it.Is there any way to find that out?
Worth noting that everything seems to be ok with the disk (smart) and the filesystem (btrfsck) although I’m somewhat new to btrfs.

Any clues?

The logs from systemd

systemd[1]: Starting Docker Application Container Engine…
dockerd[3944]: time=“2016-09-13T20:07:34.764075701-03:00” level=info msg=“libcontainerd: new containerd process, pid: 3960"
dockerd[3944]: time=“2016-09-13T20:07:35.769294494-03:00” level=info msg=”[graphdriver] using prior storage driver “btrfs”"
dockerd[3944]: time=“2016-09-13T20:07:35.857029679-03:00” level=fatal msg="Error starting daemon: layer does not exist"
systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start Docker Application Container Engine.
systemd[1]: docker.service: Unit entered failed state.
systemd[1]: docker.service: Failed with result ‘exit-code’.

Best regards,