Skip to content

error creating overlay mount to /var/lib/docker/overlay2/<...>/merged: device or resource busy #711

@llebout

Description

@llebout
  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

No errors

Actual behavior

error creating overlay mount to /var/lib/docker/overlay2/af8c5d19cde2039cf3b4c3b340b960bac2b2f0504b0b291f6c63c2d5175ea3ba/merged: device or resource busy

dmesg:
[55383.848708] overlayfs: lowerdir is in-use as upperdir/workdir

( https://gitlab.com/freedesktop-sdk/infrastructure/freedesktop-sdk-docker-images/-/jobs/242656806 )

Steps to reproduce the behavior

Install Fedora 30 and update the kernel to 5.1.15-300.fc30 (latest at time of creation of this issue)

Then as root:

git clone https://gitlab.com/freedesktop-sdk/infrastructure/freedesktop-sdk-docker-images.git
cd freedesktop-sdk-docker-images
docker build .
# Then docker push somewhere...

Note: kernels that do not have this commit do not suffer from the issue. It looks like this commit added more sanity checks around usage of overlayfs and docker is using overlayfs wrong. I could work around the issue by using an older kernel.

Output of docker version:

Client:
 Version:         1.13.1
 API version:     1.26
 Package version: docker-1.13.1-67.git1185cfd.fc30.ppc64le
 Go version:      go1.12.2
 Git commit:      1185cfd/1.13.1
 Built:           Mon Apr 22 17:47:08 2019
 OS/Arch:         linux/ppc64le

Server:
 Version:         1.13.1
 API version:     1.26 (minimum version 1.12)
 Package version: docker-1.13.1-67.git1185cfd.fc30.ppc64le
 Go version:      go1.12.2
 Git commit:      1185cfd/1.13.1
 Built:           Mon Apr 22 17:47:08 2019
 OS/Arch:         linux/ppc64le
 Experimental:    false

Output of docker info:

Containers: 5
 Running: 1
 Paused: 0
 Stopped: 4
Images: 28
Server Version: 1.13.1
Storage Driver: overlay2
 Backing Filesystem: xfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: journald
Cgroup Driver: systemd
Plugins: 
 Volume: local
 Network: bridge host macvlan null overlay
 Authorization: rhel-push-plugin
Swarm: inactive
Runtimes: oci runc
Default Runtime: oci
Init Binary: /usr/libexec/docker/docker-init-current
containerd version:  (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: N/A (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
 seccomp
  WARNING: You're not using the default seccomp profile
  Profile: /etc/docker/seccomp.json
 selinux
Kernel Version: 5.1.15-300.fc30.ppc64le
Operating System: Fedora 30 (Server Edition)
OSType: linux
Architecture: ppc64le
Number of Docker Hooks: 2
CPUs: 32
Total Memory: 31.93 GiB
Name: localhost.localdomain
ID: UU6X:5ECG:AJ3L:NBNZ:LUXT:XTMT:X4FK:NX7S:DLZN:EHEI:AEAX:FZJC
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: true
Registries: docker.io (secure), registry.fedoraproject.org (secure), quay.io (secure), registry.access.redhat.com (secure), registry.centos.org (secure), docker.io (secure)

Additional environment details (AWS, VirtualBox, physical, etc.)
QEMU/KVM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions