title: docker bash apt-get, yum, dnf command not found
body: <p>I want to install vim in my docker container, but there is some problem so I can't install vim...My docker container OS is as follows.</p>
  <pre><code>Oracle Linux Server release 8.6
  NAME=&quot;Oracle Linux Server&quot;
  VERSION=&quot;8.6&quot;
  ID=&quot;ol&quot;
  ID_LIKE=&quot;fedora&quot;
  VARIANT=&quot;Server&quot;
  VARIANT_ID=&quot;server&quot;
  VERSION_ID=&quot;8.6&quot;
  PLATFORM_ID=&quot;platform:el8&quot;
  PRETTY_NAME=&quot;Oracle Linux Server 8.6&quot;
  ANSI_COLOR=&quot;0;31&quot;
  CPE_NAME=&quot;cpe:/o:oracle:linux:8:6:server&quot;
  HOME_URL=&quot;https://linux.oracle.com/&quot;
  BUG_REPORT_URL=&quot;https://bugzilla.oracle.com/&quot;
  
  ORACLE_BUGZILLA_PRODUCT=&quot;Oracle Linux 8&quot;
  ORACLE_BUGZILLA_PRODUCT_VERSION=8.6
  ORACLE_SUPPORT_PRODUCT=&quot;Oracle Linux&quot;
  ORACLE_SUPPORT_PRODUCT_VERSION=8.6
  Red Hat Enterprise Linux release 8.6 (Ootpa)
  Oracle Linux Server release 8.6
  </code></pre>
  <p>And my docker-compose.yml is this.</p>
  <pre><code>version: &quot;3&quot;
  services:
    mysql:
      image: mysql:latest
      container_name: mysql
      ports:
        - &quot;3306:3306&quot;
      restart: always
      environment:
        MYSQL_ROOT_PASSWORD: &quot;&quot;
        TZ: &quot;Asia/Seoul&quot;
      command:
        - --character-set-server=utf8mb4
        - --collation-server=utf8mb4_unicode_ci
      volumes:
        - /home/ubuntu/docker/data/mysql:/var/lib/mysql
  </code></pre>
  <p>but I can't use dnf, yum, apt-get. How can I install vim here..?
  <img src="https://i.stack.imgur.com/rXm4c.png" alt="can't use" /></p>