Docker pull hello-world showing successful create but when using docker ps or docker ps -a not shoing images

572 views Asked by At

docker commands

I used docker ps/docker ps -a/docker ps -n 1 all not showing my first image. But it after I using docker pull hello-world it saying it installed successfully

2

There are 2 answers

0
Mureinik On BEST ANSWER

docker pull pulls an image (and all the layers that make it up) to your local machine, but doesn't run anything.

docker ps lists containers on your system.

Once you run that container (using docker run hello-world), you'll see it in dokcer ps. To view the image you pulled, you could use docker images.

0
hafij On

As you find from the previous answer docker pull will download the image (mostly from the docker hub) and when trying to pull next time, it finds the image already in your local machine. To see all the images you have locally, use docker image ls.