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-toolscontainer? - How do I collect an
sosreportfrom thesupport-toolscontainer? - The
atomiccommand is not available on RHEL 8, how do I use thesupport-toolscontainer? - How do I collect an
sosreportfrom thesupport-toolscontainer onRed Hat Core OS 4?
Resolution
- Since the
atomiccommand is not present in RHEL 8, the functionality has been added topodmanvia therunlabelsubcommand. 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
podmanto read the RUN label of the support-tools image and use it to launch the container.- The
support-toolsimage maintains the RUN label so that the container is properly setup to mount and access the host system so thatsos reportand similar support tools may be run correctly inside the container and collect host-level information. - By default, using
podman container runlabel RUN support-toolswill 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