krallin / tini

A tiny but valid `init` for containers
MIT License
9.82k stars 507 forks source link

dnf/rpm install -y tini not working #219

Open Claudiazhaoya opened 10 months ago

Claudiazhaoya commented 10 months ago

Hi,

I'm trying to install tini with Redhat ubi9 base image but dnf/rpm install -y tini always failed during Docker image is built. Any idea or workaround?

 => ERROR [linux/arm64  6/17] dnf install -y tini                                                                                                                                                                                                                       0.9s
ERR: failed to solve: process "/bin/sh -c set -ex dnf install -y tini" did not complete successfully: exit code: 1    

Thanks

AlexBaranowski commented 7 months ago

The Red Hat Enterprise Linux, and any other clone, does not provide tinit as the RPM package.

You add tinit in UBI-9 like this: https://github.com/jenkinsci/docker/blob/master/17/rhel/ubi9/hotspot/Dockerfile

This issue should be closed.