Can't bring up docker build with rockylinux:9 on rockylinux 9.3

I’m using rockylinux 9.3

[root@rocky9 ~]# cat /etc/redhat-release 
Rocky Linux release 9.3 (Blue Onyx)

I build image with dockerfile as below:

FROM rockylinux:9
LABEL maintainer="Shawn Yan"
RUN echo $PATH
RUN ls -al /usr/sbin
RUN ls -al /usr/lib/systemd
RUN ls -al /usr/bin
RUN touch 1
CMD ["/usr/bin/bash"]

but, when I run it, the container always exited.

[root@rocky9 ~]# podman build -f d -t d .
[root@rocky9 ~]# podman run --name d --hostname d -d d
[root@rocky9 ~]# podman ps -a
CONTAINER ID  IMAGE                        COMMAND         CREATED         STATUS                     PORTS       NAMES
e72aa0ccaf6d  localhost/d:latest           /usr/bin/bash   13 seconds ago  Exited (0) 12 seconds ago              d

how to bring it up?

podman run -ti ...

thx, pls ignore that. :sweat_smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.