mirror of
https://github.com/budtmo/docker-android.git
synced 2026-04-25 12:15:52 +03:00
[GH-ISSUE #140] Documentation update for Docker --cap-add flag #98
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-android#98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @j7an on GitHub (Jan 22, 2019).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/140
Operating System:
Linux host
The current
--privilegedflag is giving full access to the host. Could someone update the documentation with--cap-addflag for the actual host privileges needed to run the images for this repo? This will limit any security vulnerabilities that might exist within the image.@budtmo commented on GitHub (Jan 24, 2019):
Hi @j7an ,
It would be great if you could help us with it and create a PR.
@malletjo commented on GitHub (Mar 29, 2019):
fyi, you can use
--cap-add=SYS_ADMIN --device=/dev/bus/usb.@budtmo commented on GitHub (Apr 2, 2019):
Hi @malletjo ,
could you update documentation and create a PR?
@j7an commented on GitHub (Apr 3, 2019):
@malletjo It looks like
--cap-add=SYS_ADMINis same as giving root access based on CAP_SYS_ADMIN: the new root. Are there other ones we can use as alternative?@HasBert commented on GitHub (May 9, 2019):
I also tried to not use the privileged mode and replace it with
--cap-add=SYS_ADMIN, with--cap-add=NET_ADMIN, with--cap-add=SYS_MODULEand as @malletjo noted with--cap-add=SYS_ADMIN --device=/dev/bus/usbnothing worked for me. I'm not using a real device. Here is the official documentation of --cap-add.Maybe it has something to do with the HAXM and KVM which are needed for virtualization and are only available on the host? Correct me if I'm wrong.
Is there a place inside the docker container where the logs of the startup process are stored? I'd love to help, but I think I'm not quite as deep in this topic than you are.
@budtmo commented on GitHub (May 9, 2023):
--privileged tag is not needed anymore. Please check the current documentation to run docker-android.