How do I use the support-tools container on Red Hat Enterprise Linux 8?
Environment
- Red Hat Enterprise Linux 8
- Red Hat Core OS 4.0
Issue
- Red Hat Global Support Services has asked me to use the
support-tools
container? - How do I collect an
sosreport
from thesupport-tools
container? - The
atomic
command is not available on RHEL 8, how do I use thesupport-tools
container? - How do I collect an
sosreport
from thesupport-tools
container onRed Hat Core OS 4
?
Resolution
- Since the
atomic
command is not present in RHEL 8, the functionality has been added topodman
via therunlabel
subcommand. For example:
# podman pull registry.redhat.io/rhel8/support-tools
# podman container runlabel RUN registry.redhat.io/rhel8/support-tools
# sos report
- The command above instructs
podman
to read the RUN label of the support-tools image and use it to launch the container.- The
support-tools
image maintains the RUN label so that the container is properly setup to mount and access the host system so thatsos report
and similar support tools may be run correctly inside the container and collect host-level information. - By default, using
podman container runlabel RUN support-tools
will present you with a root shell inside the container.
- The
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments