Documentation notes about running Fn on SELinux systems (#507)

Documentation notes about running Fn on SELinux systems
This commit is contained in:
Dario Domizioli
2017-12-01 15:55:00 +00:00
committed by GitHub
parent 84e95096d4
commit b083390d6b
3 changed files with 28 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
## Default run command for production
This will run with docker in docker.
This will run with docker in docker.
```sh
docker run --privileged --rm --name fns -it -v $PWD/data:/app/data -p 80:8080 fnproject/fnserver
@@ -50,6 +50,10 @@ One way is to mount the host Docker. Everything is essentially the same except y
docker run --rm --name functions -it -v /var/run/docker.sock:/var/run/docker.sock -v $PWD/data:/app/data -p 8080:8080 fnproject/fnserver
```
On Linux systems where SELinux is enabled and set to "Enforcing", SELinux will stop the container from accessing
the host docker and the local directory mounted as a volume, so this method cannot be used unless security restrictions
are disabled.
### Run outside Docker
You can of course just run the binary directly, you'll just have to change how you set the environment variables above.