简体   繁体   中英

Debian Package in Oracle Linux Container

Have a debian package which was currently running in Ubuntu machine as service. Trying to containerize it. Since we need Oracle JDK we are using Oracle Linux as the base image. Am unable to install the debian package inside the container.

Tried both of this

RUN /bin/bash -c "dpkg -i --force-all /path/deb_file.deb"

RUN /bin/bash -c "apt install ./path/deb_file.deb"

What am I missing?

Oracle linux is not a Debian-based distribution. It is RHEL-based, so use yum to install packages you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM