Fill these in once
- List running containers
docker psThe NAMES column on the right is what you type in the next steps.
- List every container, stopped ones too
docker ps -a - Stop a container
docker stop my-app - Start a stopped container
docker start my-app - Restart a container
docker restart my-app
Check it worked
- Check its status
docker ps -a --filter "name=my-app"STATUS says Up when it's running and Exited when it's stopped.
- List running containers
docker psThe NAMES column on the right is what you type in the next steps.
- List every container, stopped ones too
docker ps -a - Stop a container
docker stop my-app - Start a stopped container
docker start my-app - Restart a container
docker restart my-app
Check it worked
- Check its status
docker ps -a --filter "name=my-app"STATUS says Up when it's running and Exited when it's stopped.
- List running containers
docker psThe NAMES column on the right is what you type in the next steps.
- List every container, stopped ones too
docker ps -a - Stop a container
docker stop my-app - Start a stopped container
docker start my-app - Restart a container
docker restart my-app
Check it worked
- Check its status
docker ps -a --filter "name=my-app"STATUS says Up when it's running and Exited when it's stopped.

New to container? I explain it in plain English on Layman Terms.