Two containers, app and job, stopped right after they started. Find out why, then run two of your own.
Show every container with its main process and status:
sh
docker ps -a --format 'table {{.Names}}\t{{.Command}}\t{{.Status}}'Run a container whose main process ends by itself after 5 seconds:
sh
docker run -d --name nap alpine:3.20 sleep 5Wait a few seconds and run docker ps -a again. nap should show Exited (0).
Keep Alpine's default shell running in the background by giving it an open stdin and a terminal:
sh
docker run -dit --name box alpine:3.20
docker ps