Difference between revisions of "Overlay file system linux"

From Teknologisk videncenter
Jump to: navigation, search
m
m
Line 5: Line 5:
 
mkdir upper2 work2 merged2  # Instance 2 fs
 
mkdir upper2 work2 merged2  # Instance 2 fs
  
mount -t overlay  overlay -o lowerdir=./lower,upperdir=./upper1,workdir=./work1 /home/debian/overlay/merged1
+
mount -t overlay  overlay -o lowerdir=./lower,upperdir=./upper1,workdir=./work1 ./merged1
mount -t overlay  overlay -o lowerdir=./lower,upperdir=./upper2,workdir=./work2  /home/debian/overlay/merged2
+
mount -t overlay  overlay -o lowerdir=./lower,upperdir=./upper2,workdir=./work2  ./merged2
 
</source>
 
</source>
 
=Links=
 
=Links=

Revision as of 06:16, 20 September 2024

#/usr/bin/env bash
mkdir lower # Common fs 
mkdir upper1 work1 merged1   # Instance 1 fs
mkdir upper2 work2 merged2   # Instance 2 fs

mount -t overlay  overlay -o lowerdir=./lower,upperdir=./upper1,workdir=./work1 ./merged1
mount -t overlay  overlay -o lowerdir=./lower,upperdir=./upper2,workdir=./work2  ./merged2

Links