Where is my docker- ised app?

Hello I did something like this on Ubuntu. Not sure where is my docker app.

jim@jim-beam-VirtualBox:~$ docker run -d centos /bin/bash -c /bin/bash -c 'while true; do x=$[$x+1];sleep 10;echo $x;done’
e0577d713618567ddfee836e7d30f73ded3829e3318ada3080b66a3cde2c1e54
jim@jim-beam-VirtualBox:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
jim@jim-beam-VirtualBox:~$

Why docker ps doesn’t report anything to be running.

I am fairly new to the technology and learning so please accept my apologies for mistake.

Regards
Jim

Problem solved, removed duplicated /bin/bash.

If you ever launch a container, and then don’t see it in docker ps, run docker ps -a. The -a tells it to show all containers. By default it only shows running containers. If there’s a problem and your container exits immediately, it’ll show up as an exited container when you include the -a. You can also run docker logs <id> on that hash that popped out when you ran your docker run command.

1 Like