1. Exact tag: docker image inspect

Use docker image inspect to check that a specific image and tag exists.

docker image inspect node:latest

Image exists:

[
{
"Id": "sha256:f47907840247d2929aa083a54565882af6fd35b011f3e2c8a7f3b0294500142a",
"RepoTags": [
"node:latest"
],
...
]

Image does not exist:

[]
Error: No such image

2. List of images: docker images

Use docker images to get a list of images installed locally. You can add the name of an image to filter the list.

$ docker images node

REPOSITORY TAG IMAGE ID CREATED SIZE
node lts-alpine3.9 87f8cdfc269e 24 hours ago 89.3MB
node latest f47907840247 25 hours ago 943MB
node <none> d308ffbc8182 3 weeks ago 89MB