9pinit: mount the port control filesystem under /port

This filesystem can be used to add and remove host port forwards e.g.

  mkdir /port/test
  echo -n '127.0.0.1:80:127.0.0.1:80' >> /port/test/ctl
  RESULT=$(cat /port/test/ctl)

Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
David Scott 2016-04-03 20:02:31 +01:00
parent 30bf58a223
commit 9982a03f31

View File

@ -24,6 +24,10 @@ start()
"db")
mkdir -p /Database
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 db /Database
;;
"port")
mkdir -p /port
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /port
esac
done