Fixed docker stop/start 'sudo: unknown user: root' error

This commit is contained in:
Andrey K
2024-01-08 21:55:22 +03:00
parent b9f02023b4
commit 363fc77b87
+4
View File
@@ -134,6 +134,10 @@ class Emulator(Device):
self.logger.info(f"{self.device_type} is created!")
def change_permission(self) -> None:
not_first_run = self.is_initialized()
if not_first_run:
return
kvm_path = "/dev/kvm"
if os.path.exists(kvm_path):
cmds = (f"sudo chown 1300:1301 {kvm_path}",