mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-11 18:14:19 +01:00
Set security_opt to label=disable
Make sure user doesn't need to interfere with their SELinux config.
This commit is contained in:
parent
5dc305607e
commit
8219db857b
|
|
@ -12,12 +12,6 @@ NOTE:
|
||||||
|
|
||||||
> Note: In progress (TBD)
|
> Note: In progress (TBD)
|
||||||
|
|
||||||
**Set allow container to use devices on SELinux**
|
|
||||||
```
|
|
||||||
$ sudo setsebool -P container_use_devices=true
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
**Download necessary models**
|
**Download necessary models**
|
||||||
```
|
```
|
||||||
$ podman-compose --profile download build
|
$ podman-compose --profile download build
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ x-base_service: &base_service
|
||||||
volumes:
|
volumes:
|
||||||
- &v1 ./data:/data:Z
|
- &v1 ./data:/data:Z
|
||||||
- &v2 ./output:/output:Z
|
- &v2 ./output:/output:Z
|
||||||
# security:
|
security_opt:
|
||||||
# - security-opt label=disable
|
- label=disable
|
||||||
devices:
|
devices:
|
||||||
- /dev/dri
|
- /dev/dri
|
||||||
- /dev/kfd
|
- /dev/kfd
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue