After building my container image with a Containerfile I try to run the container and it doesn't start and the exit code is 0. I'm not sure what I'm doing wrong. I'm trying to download a simple image and run it but it won't run or give me an error code.
Here is my Containerfile:
'''
FROM ubi8/ubi:8.5
MAINTAINER john
LABEL com.redhat.component="ubi8-container" \
name="ubi8" \
version="8.6"
ENV container oci
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
This is the command I use to create the image
podman build --tag ubi-tools -f Containerfile-net-tools
This is the command I use to start the container
podman run -d --name tools-1 localhost/ubi-tools
This is the output
root@centos-main container_files]# podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
540245ebf9b5 localhost/ubi-tools:latest /bin/bash 4 seconds ago Exited (0) 3 seconds ago tools-1