|
|
|
@ -9,7 +9,14 @@ Example of webfuse.
|
|
|
|
|
|
|
|
|
|
# Run
|
|
|
|
|
|
|
|
|
|
docker run -p 8080:8080 --rm -it --user "`id -u`" webfuse bash
|
|
|
|
|
docker run -p 8080:8080 --rm -it \
|
|
|
|
|
--device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
|
|
|
|
|
webfuse bash
|
|
|
|
|
webfused -m /tmp -d /var/www -p 8080
|
|
|
|
|
|
|
|
|
|
Open a webbrowser and visit http://localhost:8080.
|
|
|
|
|
Open a webbrowser and visit http://localhost:8080 and follow the instruction on the screen.
|
|
|
|
|
|
|
|
|
|
Then open another terminal and connect to the container.
|
|
|
|
|
|
|
|
|
|
docker exec -it <name of container> bash
|
|
|
|
|
cat /tmp/test/default/hello.txt
|
|
|
|
|