Questions tagged [overlayfs]
30 questions
7
votes
1 answer
Kubernetes: Increase the size of OverlayFS / containerd runtime volumes in K3s
I have a lightweight Kubernetes cluster deployed with Rancher's K3s.
Most of the time pods runs fine in it, however I noticed that from time to time it runs into NodeDiskPressure, which causes existing Pods to be evicted.
Looking into the available…

born to hula
- 1,274
- 5
- 18
- 36
5
votes
1 answer
Overlayfs: restore removed or changed file from "lower"
OpenWrt uses overlayfs
# mount | grep overlay
/dev/ubi0_2 on /overlay type ubifs (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
Somehow real lowerdir is /rom
# mount | grep…

kyb
- 7,233
- 5
- 52
- 105
4
votes
3 answers
overlayfs inside docker container
Is it possible to mount an overlay fs inside a (privileged) docker container? At least my intuitive approach, which works fine outside of a container, fails:
> mkdir /tmp/{up,low,work,merged}
> mount -t overlay overlay -o…

MNayer
- 151
- 1
- 10
3
votes
0 answers
OverlayFS on a single large file
I would like to solve the following set of constraints:
I want to be able to mount a copy of a large (16gb) remote file
if a part of the file is written to by the application, it is written to the local copy and not synced over the network
if a…

Sergiu Toarca
- 2,697
- 20
- 24
3
votes
0 answers
Overlay FS exclude folder
I have an embedded device where I want to overlay the rootfs. So far my initramfs script looks like this:
#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
mount -t proc proc /proc
mount -t devtmpfs none /dev
mount -t sysfs sysfs…

Damien LEFEVRE
- 150
- 9
2
votes
0 answers
Is there any way in a dockerfile to make previous files part of the current layer (so `rename()` isn't crossing filesystem boundaries)?
I'm trying to build chromium v8 inside a container as part of another program's build chain, and one of the binary build tools crashes because it's trying to rename/move files across the filesystem boundary that overlayfs creates for container…

joshhemphill
- 492
- 6
- 20
2
votes
0 answers
How does overlayfs handle temp file deallocation?
If I understand properly, Overlayfs handles file deletion in the lower layer by creating a whiteout file in the upper one. Does this mean that no longer necessary tmp files can stay around as garbage even if they are removed from the upper layer? Or…

saolof
- 1,097
- 1
- 15
- 12
2
votes
0 answers
Mounting container filesystem into sidecar in k8s
I'd like to run perf record and perf script on a process running in a container in Kubernetes (actually on Openshift). Following the approach from this blogpost I was able to get perf record working (in the sidecar). However the perf script cannot…

Radim Vansa
- 5,686
- 2
- 25
- 40
1
vote
0 answers
Overlay a folder in docker by one from host
My situation is the following:
I am having a docker image/container in which I am compiling. I had to install some components to $HOME via the Dockerfile (so while creating the image).
Let's say one of those components is in ~/.config, but also…

ataraxis
- 1,257
- 1
- 15
- 30
1
vote
1 answer
Using overlay2 storage driver with an overlay filesystem
Goal
I'm running docker in a live CD and I want to cache the results of docker build, mostly, for when I reboot into this live CD. My idea was to set up an overlayfs in /var/lib/docker. So, I have the below in /etc/fstab:
overlay /var/lib/docker…

fuzzybear3965
- 243
- 5
- 15
1
vote
0 answers
RPi OverlayFS and read-only also turns external mounted drive read-only/root-only
Background
I have recently discovered and experimenting with OverlayFS setting in raspi-config on RPi3 with openmediavault. I am trying OverlayFS because system on sdcard is way too fragile. So far, this feature is able to prevent sdcard from…

Marco Leong
- 565
- 4
- 11
1
vote
1 answer
What is the disk I/O when docker containers are launched with host mounted volumes and how can I reduce it?
When running a docker container with host mounted volumes, both from docker and docker-compose, on RHEL, I observe a large amount of disk I/O (using dstat) before the container is launched.
The I/O is associated with the dockerd process, and I am…

mdisibio
- 3,148
- 31
- 47
1
vote
1 answer
Laravel Dockerfile > 1GB
I'm building a Docker Image for my Laravel application but it's getting bigger than 1GB.
This is the Dockerfile:
#
# PHP Dependencies
#
FROM composer as vendor
COPY database/ database/
COPY composer.json composer.json
COPY composer.lock…

Dirk
- 3,095
- 4
- 19
- 37
0
votes
0 answers
Unmount OverlaysFS directory with multiple lower directory
There are multiple directory mounted with physical device.
lower0 -> /dev/blk/sda-0
lower1 -> /dev/blk/sda-1
lower2 -> /dev/blk/sda-2
lower3 -> /dev/blk/sda-3
Then I stacked them together using using overlayfs as shown…

CleanCoder540
- 57
- 1
- 8
0
votes
0 answers
Enabling OverlayFS on Raspbian OS prevents eth1 from working (USB to Ethernet dongle is plugged)
I am working with Raspberry Pis running on Raspbian OS. For a Pi a friend had configured, we are using a USB to Ethernet adapter and to protect the SD card we have Overlay and Write protection both enabled. It does not cause any issues at all, eth1…