Oracle Linux 容器中的 Debian 软件包
Debian Package in Oracle Linux Container
有一个 debian
包,目前 运行 在 Ubuntu 机器上作为服务。试图将其容器化。由于我们需要 Oracle JDK
,因此我们使用 Oracle Linux
作为基础图像。无法在容器内安装 debian 包。
这两个都试过了
RUN /bin/bash -c "dpkg -i --force-all /path/deb_file.deb"
RUN /bin/bash -c "apt install ./path/deb_file.deb"
我错过了什么?
Oracle linux 不是基于 Debian 的发行版。它是基于 RHEL 的,所以使用 yum 安装你需要的包。
有一个 debian
包,目前 运行 在 Ubuntu 机器上作为服务。试图将其容器化。由于我们需要 Oracle JDK
,因此我们使用 Oracle Linux
作为基础图像。无法在容器内安装 debian 包。
这两个都试过了
RUN /bin/bash -c "dpkg -i --force-all /path/deb_file.deb"
RUN /bin/bash -c "apt install ./path/deb_file.deb"
我错过了什么?
Oracle linux 不是基于 Debian 的发行版。它是基于 RHEL 的,所以使用 yum 安装你需要的包。