在Docker,容器和图像有什么区别? [英] In Docker, what's the difference between a container and an image?

查看:167
本文介绍了在Docker,容器和图像有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Docker中容器和图像有什么区别?在开始使用Docker教程中,这些术语都被使用,但我不明白差异



任何人可以请点灯吗?

解决方案

是根文件系统更改的有序集合以及在容器运行时间内使用的相应执行参数。图片是只读的。





一个容器是图像的有效(或不活动的)退出状态实例。




What's the difference between a container and an image in Docker? In the Get started with Docker tutorial these terms are both used, but I do not understand the difference.

Can anybody please shed some light?

解决方案

An image is an ordered collection of root filesystem changes and the corresponding execution parameters for use within a container runtime. Images are read-only.

A container is an active (or inactive if exited) stateful instantiation of an image.

这篇关于在Docker,容器和图像有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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