desktop-linux icon indicating copy to clipboard operation
desktop-linux copied to clipboard

When docker-desktop is running, docker image ls command is not showing available images?

Open R4JxF60 opened this issue 2 years ago • 4 comments

When I execute docker image ls command, docker shows the available images as expected.

But when docker-desktop is running, executing docker image ls command not shows available images. Also the docker-desktop is not showing the images(pull via docker pull command) on the disk.

Any insight on this?

R4JxF60 avatar Jun 30 '22 05:06 R4JxF60

Docker Desktop installs a new daemon running inside a VM, and if you start docker desktop, it switches the CLI to use that daemon; after switching, you'll see the images that are available in the docker desktop daemon, which may not have images yet.

In either case, this looks to be specific to docker desktop, so let me transfer this ticket.

thaJeztah avatar Jun 30 '22 11:06 thaJeztah

@R4JxF60 Can you run the commands with the context flag to show which engine your are targeting?

docker -c desktop-linux images
docker -c default images

Please keep in mind that Docker Desktop and your local engine do not share the image store. If you pulled/built images with your local engine, you won't see them in Docker Desktop and vice versa.

aiordache avatar Jul 04 '22 07:07 aiordache

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robott avatar Mar 01 '23 01:03 docker-robott

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robot[bot] avatar Jun 23 '23 01:06 docker-robot[bot]