How do I use the support-tools container on Red Hat Enterprise Linux 8?

Solution In Progress - Updated -

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 a sosreport from the support-tools container?
  • The atomic command is not available on RHEL 8, how do I use the support-tools container?
  • How do I collect a sosreport from the support-tools container on Red Hat Core OS 4?

Resolution

  • Since the atomic command is not present in RHEL 8, the functionality has been added to podman via the runlabel subcommand. For example:
    # podman pull registry.redhat.io/rhel8/support-tools
    # podman container runlabel RUN registry.redhat.io/rhel8/support-tools
    # sosreport
  • 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 that sosreport and similar support tools may be run correctly inside the container.
    • By default, using podman container runlabel RUN support-tools will present you with a root shell inside the container.

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.