如何按平台过滤Docker映像? [英] How to filter Docker images by platform?

查看:84
本文介绍了如何按平台过滤Docker映像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10计算机上同时使用LCOW和WCOW。两个平台上都有很多图像。我想查看特定平台的所有图像。

I am using LCOW and WCOW at the same time on a Windows 10 machine. There are lots of images in both platforms. I want to see all the images of a specific platform.

有没有办法使 docker图像仅显示例如的图像Linux?

Is there a way to make docker images show only the images that are for e.g. Linux?

推荐答案

您可以使用以下命令找到docker映像平台

You can find the docker image platforms using the command

docker image inspect <image id>

查找 Os属性值

要在docker images --format {{.ID}}中为i列出所有映像及其各自的操作系统

To list all the images and their respective OSs

for i in `docker images --format {{.ID}}`; do echo $i `docker image inspect $i |grep Os`; done

这篇关于如何按平台过滤Docker映像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆