Trying to Learn Red Hat and Docker containers by creating a container that will allow me the ability to remotely access machines in my home lab. Everting was working great until I restarted. Now when I login use podman terminal commands to view all the containers created it returns nothing. Then I went to cockpit and see the container listed but it shows state exited, so I went to cockpit services turn on all the podman services, restarted Red Hat and no change it still show the container in a exited state.

How can restart the container.

@Red_Hat

@amy-red-hat

1 Spice up

Are you saying that the container host is not automatically restarting the container? Have you seen this article ?

Yes, when the host OS was shut down and then restarted the container stopped or went to an exited state.

I tried some of those commands but did the same thing. I’m not sure if it is podman commands I should be using or docker commands. However I do see the containers when using cockpit. I’m going to give the commands based on the article below a try.

Where I’m unclear is whether the container went to the exited state before or after the restart process ran. Do you have post startup logs indicating the state change?

The container went to the exited state after the restart. When I run commands from the terminal it does not find any container. When I use cockpit it sees the container but I get a message failed to obtain logs from container.

I have tried podman pod ps which should list all containers but it shows nothing.
I tried docker ps -a and it shows nothing but cockpit shows the container. What am I missing.