使用Linus OS将Windows容器(使用Docker构建)推入Azure容器服务(ACS) [英] Pushing Windows Containers (built with Docker) into Azure Container Service (ACS) with Linus OS

查看:77
本文介绍了使用Linus OS将Windows容器(使用Docker构建)推入Azure容器服务(ACS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须容器化Dot Net Core Web API应用程序并将该容器部署到Azure容器服务中

I have to containerize the Dot Net Core Web API application and deploy that container into an Azure Container Service

这是我所做的事情

  1. 我确实在Azure门户中创建了一个Azure容器服务帐户/域/虚拟机

  1. I did create an Azure Container Service account/domain/virtual machine within the Azure portal

此外,我确实为Windows Server 2016创建了另一个虚拟机,其中已经安装了Docker的容器

Also, I did create another virtual machine for the Windows Server 2016 with Containers that already had the Docker installed

在Windows Server 2016上,我确实创建了一个简单的.NET Core Web API应用程序,并使用Docker为该应用程序创建了一个映像

On the Windows server 2016 I did create a simple .NET Core Web API application and created an image for that application using Docker

我确实将Web API应用程序的映像推送到Docker集线器中,并使用SSH隧道接口尝试将映像下载到Azure容器服务中,以便可以从该服务运行该映像

I did push the image of the Web API application into a Docker hub and using the SSH tunnel interface tried to download the image into an Azure Container Service, so it can be run from that service

但是,我会收到一条消息,指出Windows容器不能在Linux上运行,因为默认情况下Azure容器服务是Linux系统

However, I would get a message that the Windows Containers cannot run on Linux as the Azure Container Service by default is a Linux system

是否可以将Windows Docker容器部署到Azure容器服务中一种.我应该在Windows中创建Azure容器服务吗?b.我是否应该使用其他协调器(不是Docker)将Windows容器部署到Azure容器服务中?C.我应该走另外一条路吗?

Is there a way to deploy a Windows Docker Container into an Azure Container Service a. Should I create Azure Container Service in Windows? b. Should I use another orchestrator (NOT Docker) to deploy a Windows Container into an Azure Container Service? c. Should I go down a different path?

非常感谢您的支持!

推荐答案

  1. 您需要使用Windows节点创建ACS(kubernetes可以做到这一点).
  2. Docker不是协调器.Docker是运行容器的引擎.不,另一个引擎在这里无济于事,您需要支持Windows容器的主机.
  3. 如果您真的想要docker,别无选择.将ACS与Windows节点一起使用,或与独立\群集的2016 Datacenter节点一起使用(您必须自己管理它们).

我已经使用kubernetes进行了一些工作,我认为它比单独管理ws w016框要好(Azure提供了一种在几分钟之内创建可用的kubernetes集群的方法).Kubernetes可以做一些有趣的事情,例如滚动升级,将其与Azure集成在一起,因此当您创建端点时,Kubernetes会自动为您创建一个公共IP地址,等等.

I've worked with kubernetes a bit and I believe it is superior to managing ws w016 boxes on your own (and Azure offers a way to create a working kubernetes cluster in a matter of minutes). Kubernetes can do fun things like rolling upgrades, its integrated with Azure so when you create an endpoint it automatically creates a Public IP address for you and so on and so forth.

缺点是复杂性.如果您想让kubernetes成为您的生产环境,则最好准备好对其进行修复:)

The downside is complexity. If you want to make kubernetes your production environment you'd better be prepared to fix it :)

这篇关于使用Linus OS将Windows容器(使用Docker构建)推入Azure容器服务(ACS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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