Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find image latest locally

Tags:

docker

When I run docker ps I can see the following image running:

6ec29fa046f0

But when I do docker run -i 6ec29fa046f0:

Unable to find image '6ec29fa046f0:latest' locally
Pulling repository docker.io/library/6ec2af9064f0
docker: Error: image library/6ec29fa046f0:latest not found.

So how can I see this image in docker ps but I can't run it locally?

like image 425
octavian Avatar asked Dec 10 '16 13:12

octavian


2 Answers

What you are seeing is the identifier of a running container started from an image.

You can see the images by running:

    docker images

You can also check what image is that container using by issuing:

    docker inspect <identifier>
like image 186
Sergiu Vidrascu Avatar answered Sep 28 '22 04:09

Sergiu Vidrascu


When you are using docker ps you can see the name or ID of the image. In your case, this is ID of the image.

docker ps

To find the name of the image you can try to use docker images | grep "your_id"

enter image description here

like image 44
Myrkytyn Avatar answered Sep 28 '22 04:09

Myrkytyn