Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-54361

podman container with --userns=keep-id doesn't respect restart policy

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-9.5
    • rhel-8.10
    • podman
    • None
    • No
    • Important
    • ZStream
    • 3
    • rhel-sst-container-tools
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • RUN 258, RUN 259, RUN 260
    • Approved Blocker
    • None

      What were you trying to do that didn't work?

      When creating a container with --userns=keepid and --restart always, the container exits and doesn't restart as expected

      Please provide the package NVR for which bug is seen:

      [user@vm253-50 ~]$ rpm -q podman

      podman-4.9.4-12.module+el8.10.0+22202+761b9a65.x86_64

      How reproducible:

      Always

      Steps to reproduce

       

      [user@vm253-50 ~]$ podman run -itd --name test2 --userns keep-id --restart always ubi8-minimal sleep 5

      4f7010daf35c66fc9d1480d91e07ca914b19008eefa28ebeb3dd1008ea3e1d0d

      [user@vm253-50 ~]$ podman run -itd --name test --restart always ubi8-minimal sleep 5

      efd3d7b5513974a585a181e1903844746edf38101af1120de23817bbb35cfa32

       

      [user@vm253-50 ~]$ podman ps -a

      CONTAINER ID  IMAGE                                           COMMAND     CREATED        STATUS                    PORTS       NAMES

      efd3d7b55139  registry.access.redhat.com/ubi8-minimal:latest  sleep 5     2 minutes ago  Up 7 seconds                          test

      4f7010daf35c  registry.access.redhat.com/ubi8-minimal:latest  sleep 5     2 minutes ago  Exited (0) 2 minutes ago              test2

       

       

      [user@vm253-50 ~]$ cat /etc/redhat-release

      Red Hat Enterprise Linux release 8.10 (Ootpa)

       

      [user@vm253-50 ~]$ uname -a

      Linux vm253-50.gsslab.pnq2.redhat.com 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 1 04:16:12 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux

      Expected results

      Container keeps restarting when "--restart always" is specified

      Actual results

      Container is exited

              pholzing@redhat.com Paul Holzinger
              rhn-support-vraghave Vignesh Raghavendran
              Container Runtime Eng Bot Container Runtime Eng Bot
              Alex Jia Alex Jia
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: