I am using Docker Desktop on Windows.
I just ran a couple of docker run commands,
docker run docker/whalesay cowsay boo
And
docker run -d -p 80:80 docker/getting-started
I can see the whalesay output on the console. I can also see the images available on my machine.
However I do not see any containers running for the whalesay image? Why is this so?
C:\Users\Admin>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker/getting-started latest 67a3629d4d71 6 months ago 27.2MB
hello-world latest bf756fb1ae65 16 months ago 13.3kB
docker/whalesay latest 6b362a9f73eb 5 years ago 247MB
C:\Users\Admin>docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
99d7dcd54aa3 docker/getting-started "/docker-entrypoint.…" 19 minutes ago Up 19 minutes 0.0.0.0:80->80/tcp flamboyant_solomon
C:\Users\Admin>docker run docker/whalesay cowsay HelloWorld
____________
< HelloWorld >
------------
\
\
\
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\______/
C:\Users\Admin>docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
99d7dcd54aa3 docker/getting-started "/docker-entrypoint.…" 19 minutes ago Up 19 minutes 0.0.0.0:80->80/tcp flamboyant_solomon