44

I'm trying to see a list of images in my docker instance, but I keep getting an empty list.

I run

docker run busybox:latest echo hello

It prints hello. I run

docker images list --all

it prints

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

The same thing happens if I try docker load -i myimage.tar and list. Why isn't it showing any images?


docker version
Client:
 Version:      17.06.1-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   874a737
 Built:        Thu Aug 17 22:51:12 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.06.1-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   874a737
 Built:        Thu Aug 17 22:50:04 2017
 OS/Arch:      linux/amd64
 Experimental: false
Hatshepsut
  • 5,962
  • 8
  • 44
  • 80

3 Answers3

72

Try

docker images

I think the docker client is trying to filter by token list and therefore is not finding any images with this name criteria.

Niloct
  • 9,491
  • 3
  • 44
  • 57
43

docker images - Will list all the images.

docker image ls - is same as "docker images"

docker images ls - here "ls" acts as filter.

slfan
  • 8,950
  • 115
  • 65
  • 78
O_K
  • 922
  • 9
  • 14
10

Another alternative answer is to enter docker image ls

Dean Christian Armada
  • 6,724
  • 9
  • 67
  • 116