hi,
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
e72aa0ccaf6dbfffde7d6a3840642ddcb7438103bce26a744153a78e905df052
[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?