Skip to content

Instantly share code, notes, and snippets.

@lalyos
Created September 5, 2013 11:14
Show Gist options
  • Save lalyos/6448829 to your computer and use it in GitHub Desktop.
Save lalyos/6448829 to your computer and use it in GitHub Desktop.
aufs test (docker, lxc introduction) http://blog.dotcloud.com/scale11
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