“device or resource busy” error when trying to pus

2019-06-01 10:48发布

问题:

When pushing to the official registry, I get the following error:

Failed to generate layer archive: Error mounting '/dev/mapper/docker-202:1-399203-ed78b67d527d993117331d27627fd622ffb874dc2b439037fb120a45cd3cb9be' on '/var/lib/docker/devicemapper/mnt/ed78b67d527d993117331d27627fd622ffb874dc2b439037fb120a45cd3cb9be': device or resource busy

The first time I tried to push the image, I ran out of memory on my hard drive. After that I cleaned up and should have now enough space to push it, but the first try somehow locked the image. How can I free it again?

  • I have stopped and removed the container running the image, but that didn't help.
  • I have restarted the docker service, without any results

回答1:

This looks like it might be related to the issue mentioned here: https://github.com/dotcloud/docker/issues/4767

It sounds like you've tried stopping and removing the container. Have you tried restarting the docker daemon and/or restarting the host?



标签: docker