Docker Community Forums

Share and learn in the Docker community.

Failure to register layer: directory not empty

(Rob Landers) #1

Expected behavior

To build an image

Actual behavior

Error: failed to register layer: rename /var/lib/docker/image/aufs/layerdb/tmp/layer-095902979 /var/lib/docker/image/aufs/layerdb/sha256/43178b136af8238aa8116d03a38b6fda84c0cd61f4e8ff13b7ee2cbbdc026acf: directory not empty


  • the output of: version v1.11.0-beta8.2
Running diagnostic tests:
[OK]      docker-cli
[OK]      Moby booted
[OK]      driver.amd64-linux
[OK]      vmnetd
[OK]      osxfs
[OK]      db
[OK]      slirp
[OK]      menubar
[OK]      environment
[OK]      Docker
[OK]      VT-x
Error exec: echo "00000003.0000f3a6" | nc -U /var/tmp/com.docker.vsock/connect > /tmp/20160427-165640/diagnostics.tar: exit 1
Docker logs are being collected into /tmp/20160427-165640.tar.gz
Most specific failure is: No error was detected

Your unique id is: 9ADF0820-128D-4F39-9409-5F0BA3B63C37
Please quote this in all correspondence.```

### Steps to reproduce the behavior

  1. docker rmi -rf \`docker images -aq\` while containers using those images were running
  2. docker build --pull

I can't provide the specific dockerfile ... all those NDA paperworks...

(Joaovasques) #2

Having the same issue here but the image in question was the official postgres. Anyone has found a solution for this?

(Joaovasques) #3

Update: After Reset to Factory Defaults it all worked