Why can't `sudo` be run in a docker container, not an isolated environment?

Docker container is not an isolated space? Why can’t we install related dependency packages (sudo apt install xxx), even apt install xxx?

1 Like

I think it’s probably for security reasons. It’s not that there’s a risk of Hugging Face’s servers being destroyed, but rather to avoid installing libraries that could be misused. Even without sudo, it was being misused quite a bit… However, there have been requests for a long time to make it possible to install certain libraries that are currently unavailable, as it’s quite inconvenient…
It would be handy if there was something like a packages-sudo.txt file…
@not-lain @meganariley @hysts

Not sure what you mean, but you can add packages.txt. See Handling Spaces Dependencies

1 Like