~golubovsky/zabudka/trunk

« back to all changes in this revision

Viewing changes to zabubu-rootfiles/etc/init/container-mount.conf

  • Committer: Dmitry Golubovsky
  • Date: 2014-11-18 03:33:08 UTC
  • Revision ID: golubovsky@gmail.com-20141118033308-8ss8wxddzr6kyqr3
Automatically mount client's exported home directory into the container.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description "Mount a session socket inside the container"
 
2
 
 
3
instance $SOCKET-$CNTR-$USER
 
4
 
 
5
script
 
6
        while [ ! -S $SOCKET ] ; do
 
7
                sleep 0.1
 
8
        done
 
9
        docker-enter $CNTR \
 
10
                mount -t 9p /session/rhome /session/mnt -o trans=unix,version=9p2000.u,uname=$USER
 
11
end script