Update README.md with minimal gui-container command

This commit is contained in:
Maciej Lebiest 2023-07-22 21:11:50 +02:00 committed by GitHub
parent 396eb7642a
commit dcafe9f62d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,16 @@ podman run --privileged -it \
gui-container:latest
```
Minimal(?)permissions example (for wayland)(you could also select single sockets from XDG_RUNTIME_DIR)
```bash
podman run -it --security-opt label:disable \
-e XDG_RUNTIME_DIR=/runtime_dir\
-e WAYLAND_DISPLAY="$WAYLAND_DISPLAY" \
-v "$XDG_RUNTIME_DIR:/runtime_dir:rw" \
--entrypoint bash --name "gui_container" \
gui-container:latest
```
starting dbus:
```bash