title: Install package in running docker container
body: <p>i've been using a docker container to build the chromium browser (building for Android on Debian 10). I've already created a Dockerfile that contains most of the packages I need.</p>
  <p>Now, after building and running the container, I followed the <a href="https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md" rel="noreferrer">instructions</a>, which asked me to execute an install script (./build/install-build-deps-android.sh). In this script multiple apt install commands are executed.</p>
  <p>My question now is, is there a way to install these packages without rebuilding the container? Downloading and building it took rather long, plus rebuilding a container each time a new package is required seems kind of suboptimal. The error I get when executing the install script is:</p>
  <pre><code>./build/install-build-deps-android.sh: line 21: lsb_release: command not found
  </code></pre>
  <p>(I guess there will be multiple missing packages). And using apt will give:</p>
  <pre><code>root@677e294147dd:/android-build/chromium/src# apt install nginx
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  E: Unable to locate package nginx
  </code></pre>
  <p>(nginx just as an example install).</p>
  <p>I'm thankfull for any hints, as I could only find guides that use the Dockerfile to install packages.</p>