Skip to content

UBI image does not include sudo #670

Closed

Description

@juhp

Describe the bug
The UBI image does not include sudo, which as far as I can tell more or less means
that a rootless ubi container cannot install any packages? I would be happy if I am wrong...
however this makes it not very useful yet sadly.
So it seems to me it is necessary to have a ubi-toolbox base container to add sudo etc, like we also do for Fedora?
Are there plans to do this?

Output of toolbox --version (v0.0.90+)
toolbox version 0.0.99

Info about your OS
Fedora/Silverblue 33

Activity

  1. added
    1. Bug
    on Jan 18, 2021
  2. debarshiray commented on Jan 18, 2021

    @debarshiray
    Member

    This was also my initial reaction, but then I saw that UBI has su! So, this should work:

    $ su -
    # dnf ...
    
  3. juhp commented on Jan 19, 2021

    @juhp
    ContributorAuthor

    Ah thanks - you right that makes a big difference.

    (But also with ubi8 locale is not reset to C.utf8 - again not difficult to fix, but another thing to think about: I dunno if toolbox could handle that itself?)

  4. added
    4. Not Toolbx
    on Feb 17, 2021
  5. debarshiray commented on Nov 16, 2021

    @debarshiray
    Member

    It turns out that the UBI RPM repositories always had sudo in them. It was just the UBI base image that didn't come with sudo. So it was possible to install afterwards.

    Since RHEL 8.5, we have the registry.access.redhat.com/ubi8/toolbox:8.5 image that comes with sudo.

    Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. Bug4. Not Toolbx

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions