If I use the
--user argument of
docker run, changes (like a simple
mkdir for example) will appear as if performed by that (non-root) user. However, I won't be able to run commands like
apt inside the container then, because they require root privileges. By default, there is no pre-installed
ubuntu Docker images.
What's an elegant way to overcome this issue?