Skip to content

Commit

Permalink
Fixed docker stop/start 'sudo: unknown user: root' error
Browse files Browse the repository at this point in the history
  • Loading branch information
enrey committed Jan 8, 2024
1 parent b9f0202 commit 363fc77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/device/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ def create(self) -> None:
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}",
Expand Down

0 comments on commit 363fc77

Please sign in to comment.