Add 'examples/etc/systemd/nspawn/sandbox.nspawn'
This commit is contained in:
parent
41b996d77c
commit
8a426a8adb
31
examples/etc/systemd/nspawn/sandbox.nspawn
Normal file
31
examples/etc/systemd/nspawn/sandbox.nspawn
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
[Exec]
|
||||||
|
Boot=1
|
||||||
|
# Next 2 lines for docker
|
||||||
|
Capability=all
|
||||||
|
SystemCallFilter=add_key keyctl
|
||||||
|
|
||||||
|
PrivateUsers=no
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
#opengl
|
||||||
|
BindReadOnly=/tmp/.X11-unix
|
||||||
|
# Next line for docker
|
||||||
|
Bind=/sys/fs/cgroup
|
||||||
|
Bind=/dev/dri
|
||||||
|
#Bind=/dev/nvidia0
|
||||||
|
#Bind=/dev/nvidiactl
|
||||||
|
#Bind=/dev/nvidia-modeset
|
||||||
|
Bind=/dev/shm
|
||||||
|
|
||||||
|
# input
|
||||||
|
Bind=/dev/input
|
||||||
|
|
||||||
|
# pulseaudio
|
||||||
|
Bind=/run/user/1000/pulse:/run/user/host/pulse
|
||||||
|
|
||||||
|
# alsa
|
||||||
|
Bind=/dev/snd
|
||||||
|
|
||||||
|
|
||||||
|
# downloads
|
||||||
|
#Bind=/home/drew/Downloads
|
Loading…
Reference in New Issue
Block a user