mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
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:
parent
30bf58a223
commit
9982a03f31
@ -24,6 +24,10 @@ start()
|
|||||||
"db")
|
"db")
|
||||||
mkdir -p /Database
|
mkdir -p /Database
|
||||||
mount -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 db /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
|
esac
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user