From 8219db857ba74d1269e8961e5b49ccccc17f19b2 Mon Sep 17 00:00:00 2001 From: lslowmotion Date: Thu, 2 May 2024 15:40:10 +0700 Subject: [PATCH] Set security_opt to label=disable Make sure user doesn't need to interfere with their SELinux config. --- README.md | 6 ------ docker-compose.yml | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 24f85d9..51335ae 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,6 @@ NOTE: > Note: In progress (TBD) -**Set allow container to use devices on SELinux** -``` -$ sudo setsebool -P container_use_devices=true - -``` - **Download necessary models** ``` $ podman-compose --profile download build diff --git a/docker-compose.yml b/docker-compose.yml index 698a949..10d8d5b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,8 @@ x-base_service: &base_service volumes: - &v1 ./data:/data:Z - &v2 ./output:/output:Z - # security: - # - security-opt label=disable + security_opt: + - label=disable devices: - /dev/dri - /dev/kfd