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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
小众软件
小众软件
V
V2EX
博客园 - Franky
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
量子位
博客园 - 【当耐特】
雷峰网
雷峰网
WordPress大学
WordPress大学
Jina AI
Jina AI
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
Visual Studio Blog
Microsoft Security Blog
Microsoft Security Blog

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