Created
September 5, 2013 11:14
-
-
Save lalyos/6448829 to your computer and use it in GitHub Desktop.
aufs test (docker, lxc introduction)
http://blog.dotcloud.com/scale11
This file contains hidden or 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
mkdir aufs aufs-ro aufs-rw | |
echo 'one' > aufs-ro/one.txt | |
# create 'aufs' dir which is an overlay or auf-rw and auf-ro dirs | |
sudo mount -t aufs -o br=$PWD/aufs-rw=rw:$PWD/aufs-ro=ro none $PWD/aufs | |
# now lets check where goes a new file? | |
echo "hello new file" > aufs/two.txt | |
# where goes a change to the 'ro' file | |
echo "2.line" >> aufs/one.txt | |
sudo umount $PWD/aufs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment