Last active
March 13, 2019 05:13
-
-
Save mbairagi85/35dcf1b4a509193810bfb439e1890634 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Since we are simulating image layers through "backend" and "frontend" directories so mounting is | |
# being performed as read-only mode. | |
foo@bar:~$ mount -o ro backend-dev backend | |
mount -o ro frontend-dev frontend | |
# "fullstack" directory is simulating the container layer so it should be writable. | |
mount fullstack-dev fullstack | |
# Create workdir | |
mkdir -f fullstack/upper fullstack/workdir | |
# perform union mount using overlayfs. | |
mount -t overlay -o \ | |
lowerdir=frontend:backend,\ | |
upperdir=fullstack/upper,\ | |
workdir=fullstack/workdir \ | |
none union | |
ls union | |
git java javascript lost+found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment