使用Azure VM图像部署容器实例

发布于 2025-01-26 19:11:34 字数 64 浏览 4 评论 0 原文

我捕获了虚拟机并拍摄了图像(广义)。我需要使用该图像部署容器。如何将VM图像转换为Docker图像或其他任何方式?

I have captured the virtual machine and taken an image (generalized). I need to use that image to deploy the container. How to convert the VM image to a docker image or any other way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

删除会话 2025-02-02 19:11:34

Docker是虚拟化的优势版本,Docker在主机OS上使用容器来运行应用程序,它允许应用程序使用相同的Linux内核计算机作为主机计算机上的系统,而不是创建整个虚拟操作系统,

您可以将图像推送到容器注册表,从那里您可以使用以下命令创建 Container实例

az container create --resource-group v-rasxxxxxdtree --name mycontainer90 --image testmyacr90.azuXXXXxxxxxinx:latest --cpu 1 --memory 1 --registry-login-server testmyacr90.azurecr.io --registry-username TestMyAcr90 --registry-password CipBd5jooXXXXXXVEcyfZrbw/Pl --dns-name-label tesXXXinx5 --ports 80

Docker is advantage version of virtualization,Docker uses container on host o.s to run application,It allow application to use the same linux kernal machine as a system on host computer rather than creating a whole virtual o.s.

You can push/upload the image to container registry and from there you can create the container instance using the below command.

az container create --resource-group v-rasxxxxxdtree --name mycontainer90 --image testmyacr90.azuXXXXxxxxxinx:latest --cpu 1 --memory 1 --registry-login-server testmyacr90.azurecr.io --registry-username TestMyAcr90 --registry-password CipBd5jooXXXXXXVEcyfZrbw/Pl --dns-name-label tesXXXinx5 --ports 80
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文