moby: Error processing tar file(exit status 1): Error cleaning up after pivot: remove /.pivot_root767627221: device or resource busy.
Description
Steps to reproduce the issue:
- docker run hello-world
Describe the results you received: ~# docker run hello-world Unable to find image ‘hello-world:latest’ locally latest: Pulling from library/hello-world 1b930d010525: Extracting 977B/977B docker: failed to register layer: Error processing tar file(exit status 1): Error cleaning up after pivot: remove /.pivot_root767627221: device or resource busy.
Output of docker version:
Client: Docker Engine - Community
Version: 19.03.2
API version: 1.40
Go version: go1.12.8
Git commit: 6a30dfc
Built: Thu Aug 29 05:28:19 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.2
API version: 1.40 (minimum version 1.12)
Go version: go1.12.8
Git commit: 6a30dfc
Built: Thu Aug 29 05:26:54 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683
Output of docker info:
Client:
Debug Mode: false
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 19.03.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-146-generic
Operating System: Ubuntu 16.04.6 LTS
OSType: linux
Architecture: x86_64
CPUs: 28
Total Memory: 110.2GiB
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 24 (5 by maintainers)
Linux Kernel upgrade solved it for me: upgraded from 4.19.138 to 5.4.57
Faced the same problem during
docker pullcommand.Next attempts failing immediately:
The only info I can found in
journalctlis:systemctl says that docker is working:
Restarting docker service doesn’t help. Only system reboot helps.
And in general system starts to behave weirdly: sudo is asking for password after ≈10 seconds delay. So may be it is not docker issue and something suddenly broke in my system, but what? Disk space seems to be ok.
docker version
docker info
OS: Manjaro Linux. Docker installed via package manager.
Yes upgrading kernel worked for me too. Just a quick reminder how to upgrade a kernel: https://wiki.manjaro.org/index.php/Manjaro_Kernels
Bug was introduced into Manjaro linux419 (https://gitlab.manjaro.org/packages/core/linux419) at commit 98da16f.
Specifically, the problem is proc_mounts.patch which was added then.
Last good release was 4.19.133 (if it was released - cannot be sure) or 4.19.132.
You can build the latest kernel without proc_mounts.patch. Three modifications are required in PKGBUILD: the call to patch; the source; the checksum.
I have tested this on 4.19.152. It does fix the problem.
Applying proc_mounts.patch to Manjaro 5.4 recreates the exact same problem.
Applying proc_mounts.patch to ArchLinux 5.4 does not create the problem.
I think the aufs patches are tripping over themselves. But I’m not yet sure.
Furthermore, I believe the problem would affect containers in general and not just docker.
I have thoughts about the true root cause. But they’re not much further beyond speculation. So I decided to post this much at the moment to help anyone stuck.
The same problem happened to me, also.
And
/etc/mtabis broken.I faced exactly the same issue on Manjaro with 4.19.143-1-MANJARO x86_64 after docker updated to 19.03.12-ce Upgrading kernel to 5.4.62-1-MANJARO x86_64 solved problem.
Created new ticket in Arch bug tracker: FS#67639