惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
博客园 - 司徒正美
I
InfoQ
宝玉的分享
宝玉的分享
G
Google Developers Blog
J
Java Code Geeks
Martin Fowler
Martin Fowler
The GitHub Blog
The GitHub Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
罗磊的独立博客
腾讯CDC
F
Fortinet All Blogs
A
About on SuperTechFans
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
B
Blog RSS Feed
博客园 - 聂微东
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
L
LangChain Blog
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏

CodeBlocQ

Jest - Mock Local Storage Have Mobx and React work with TypeScript Loose assertions on arguments passed to function with Jest TypeScript Abstract Class A-Star Pathfinding React Demo My Free and Open Source Expense Tracker App is on the App Store Pass artifacts around in between stages in gitlab CI How to start a tech company as a non technical individual Setup gitment on your Hexo blog
Check if a Docker image exists locally
Jonathan Klughertz · 2020-04-09 · via CodeBlocQ

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