According to the tutorials I've read so far, using "docker run -d" will start a container from an image and execute it in the background.
This is how it appears; we can see that we already have a container id.
root@docker:/home/root# docker run -d centos
605e3928cdddb844526bab691af51d0c9262e0a1fc3d41de3f59be1a58e1bd1d
But if I ran "docker ps", nothing was returned.
So I tried "docker ps -a" and saw that the container had already exited:
root@docker:/home/root# docker ps ...READ MORE
Dec 15, 2022
in DevOps on Cloud
by
Nicholas
• 7,760 points
edited
6 days ago
•
14 views