Docker 和 AMI 的区别 [英] Difference between Docker and AMI

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

问题描述

在 AWS 的上下文中:

In the context of AWS:

AMI 用于打包软件,可以部署在 EC2 上.Docker 还可以用于打包软件,也可以部署到 EC2.

AMI is used to package software and can be deployed on EC2. Docker can also be used to package software and can also be deployed to EC2.

两者有什么区别,我该如何选择?

What's the difference between both and how do I choose between them?

推荐答案

AMI 是一个图像.这是一台可以从中启动新实例的整机.docker 容器更轻量级和便携性.docker 容器应该可以在提供者之间传输,而 AMI 则不是(很容易).

An AMI is an image. This is a whole machine that you can start new instances from. A docker container is more lightweight and portable. A docker container should be transportable between providers while an AMI is not (easily).

AMI 基本上是 VM 映像.Docker 容器是打包的迷你映像,它们在隔离环境中的某个 VM 上运行.

AMI's are VM images basically. Docker containers are packaged mini-images that run on some VM in an isolated environment.

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

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