buildah: ERRO[0000] 'overlay' is not supported over overlayfs
When I execute within a fedora:28 docker container this command
sudo buildah --debug images
I get this error
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] overlay: override_kernelcheck=true
ERRO[0000] 'overlay' is not supported over overlayfs
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] overlay: override_kernelcheck=true
ERRO[0000] 'overlay' is not supported over overlayfs
ERRO[0000] 'overlay' is not supported over overlayfs: backing file system is unsupported for this graph driver
'overlay' is not supported over overlayfs: backing file system is unsupported for this graph driver
Here is the dockerfile used to create the buildah container on Macos
FROM fedora:28
RUN dnf install buildah sudo -y
#
# Create a user and group used to launch processes
# The user ID 1000 is the default for the first "regular" user on Fedora/RHEL,
# so there is a high chance that this ID will be equal to the current user
# making it easier to use volumes (no permission issues)
#
RUN groupadd -r default -g 1000 && useradd -u 1000 -r -g default -m -d /home/me -s /sbin/nologin -c "Default user" default
#
# Add user to sudo
#
RUN echo 'default:secret' | chpasswd
RUN echo '%default ALL=(ALL) ALL' >> /etc/sudoers
# Set the working directory to default' user home directory
WORKDIR /home/me
USER default
Docker info (command executed within macos’s terminal)
docker info
Containers: 67
Running: 11
Paused: 0
Stopped: 56
Images: 160
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
Log:
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Init Binary: docker-init
containerd version: (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: N/A (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
seccomp
Profile: default
selinux
Kernel Version: 3.10.0-693.21.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.954GiB
Name: minishift
ID: PWZQ:O5OI:AMTH:2IVK:E3FW:IX2G:BJ6X:JTWS:MW2N:YCY3:BDUI:LFAZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
provider=xhyve
Experimental: false
Insecure Registries:
172.30.0.0/16
127.0.0.0/8
Live Restore Enabled: false
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 32 (16 by maintainers)
We are seeing issues in podman 3.1 and new Buildah with containers-storage on certain platforms not using fuse-overlayfs and falling back to overlay, which could be this issue.
you’ll need at least to add the /dev/fuse device to the container (
--device /dev/fuse)You need to volume mount storage on top of /var/lib/containers for this to work. Or you could use a storage driver of something other then overlay, like vfs.
Thanks all, this worked for me to run buildah inside a container:
Just use
/var/lib/containersas a volume.And I wonder how to use fuse-overlayfs inside of the container to let it works, I have tried but failed:
Any suggestion? @giuseppe @rhatdan
yes, fuse-overlayfs should work on top of overlay.
Set up fuse-overlayfs inside of the container, I think fuse-overlay will work on overlay. @giuseppe Correct?