Reputation: 64
I try to run a new container with ubuntu:16.04 and start it. After I start it, there is not any error&warning message, but I can't see any container run of the "docker ps"
Upvotes: 1
Views: 1376
Reputation: 2613
You need to run docker container as a background by using -d parameter
docker run -i -t image_name -d /bin/bash
as an example
docker run -i -t ubuntu /bin/bash
Also in above image, when you are running docker ps -a it will show all containers (running and stopped) and if you use docker ps command then it will show only running containers, because of that it's not showing you already exited one.
Upvotes: 1