Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed docker container stop/start blank background error #403

Merged
merged 1 commit into from May 3, 2024

Conversation

enrey
Copy link
Contributor

@enrey enrey commented Jan 8, 2024

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Purpose of changes

When doing docker stop then start, getting blank background instead of emulator and error in logs:
sudo: unknown user: root
sudo: unable to initialize policy plugin
...
subprocess.CalledProcessError: Command 'sudo chown 1300:1301 /dev/kvm' returned non-zero exit status 1.

Related issues:
#365
#373

@enrey
Copy link
Contributor Author

enrey commented Jan 8, 2024

Hope this not breaks compatibility with other enviroments.
I suppose that we don't need second chown after container was allready created and initialized.
Fix works for me on Win 11 / WSL2.

@RasmusDK
Copy link

RasmusDK commented Jan 8, 2024

thank you, if this will fix it 🙏
Have been an annoyance for months now.

@budtmo
Copy link
Owner

budtmo commented May 3, 2024

Thank you for the PR @enrey . sorry that it took so long to review.

@budtmo budtmo merged commit fbd31b9 into budtmo:master May 3, 2024
budtmo added a commit that referenced this pull request May 3, 2024
@budtmo
Copy link
Owner

budtmo commented May 3, 2024

I need to revert the change as it breaks the code. will investigate it later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants