使用 Migrate to Containers 可以对传统应用进行现代化改造,将其从虚拟机 (VM) 实例迁移到在 Google Kubernetes Engine (GKE) 或 Cloud Run 平台上运行的原生容器。您可以从在 VMware 或 Compute Engine 上运行的虚拟机迁移工作负载,这使您可以轻松灵活地实现现有工作负载的容器化。Migrate to Containers 支持对 IBM WebSphere、JBoss、Apache、Tomcat、WordPress、Windows IIS 应用进行现代化改造,以及对基于 Linux 的应用进行容器化。
Migrate to Containers CLI 是一款轻量级工具,您可以在本地机器上使用它来迁移工作负载,以便对在虚拟机上运行的应用组件进行现代化改造。它会生成您可以部署到 GKE 或 Cloud Run 的制品。离线模式可让您在本地执行基于 Linux 的工作负载迁移,并且可以在运行时使用本地网络,而无需从互联网拉取资源。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-19。"],[],[],null,["# Migrate to Containers overview\n==============================\n\nUse Migrate to Containers to modernize traditional applications away from\nvirtual machine (VM) instances and into native containers that run on\nGoogle Kubernetes Engine (GKE) or Cloud Run platform. You can migrate\nworkloads from VMs that run on VMware or Compute Engine, giving you the\nflexibility to containerize your existing workloads with ease.\nMigrate to Containers supports modernization of IBM WebSphere, JBoss, Apache,\nTomcat, WordPress, Windows IIS applications, as well as containerisation of\nLinux-based applications.\n\nThe Migrate to Containers CLI is a lightweight tool that you can use on your local\nmachine for migrating your workloads to modernize application components that\nrun on VMs. It generates artifacts that you can deploy to GKE or\nCloud Run. The offline mode lets you perform migrations of your\nLinux-based workloads locally and can work on your local network without pulling\nresources from the internet during runtime.\n\nYou can migrate applications from supported source platforms to the following:\n\n- [Google Kubernetes Engine (GKE)](/kubernetes-engine/docs) and [Autopilot clusters](/kubernetes-engine/docs/concepts/autopilot-overview)\n- [Cloud Run](/run/docs)\n\nAbout Migrate to Containers integration with Cloud Code\n-------------------------------------------------------\n\nThe Migrate to Containers integration with the Cloud Code gives you the ability\nto migrate applications from VMs to containers running on GKE,\ndirectly in Visual Studio, using a Linux machine.\n\n- The extension is integrated with the Migration Center discovery client CLI and Migrate to Containers CLI.\n- It provides a guided replatforming journey, technical fit assessment, and automated artifact generation, which let you run existing applications on GKE.\n\nTo learn more about the Migrate to Containers extension, see\n[Replatform Linux applications to containers](/code/docs/vscode/replatform-apps-to-containers).\n\nAbout GKE and GKE Enterprise clusters\n-------------------------------------\n\nGoogle Kubernetes Engine (GKE) clusters provide secured and\nmanaged Kubernetes services with autoscaling and multi-cluster support.\nGKE lets you deploy, manage, and scale containerized\napplications on Kubernetes, powered by Google Cloud.\n\n- [Autopilot clusters](/kubernetes-engine/docs/concepts/autopilot-overview): this mode of operation in GKE provisions and manages the cluster's underlying infrastructure, including nodes and node pools, giving you an optimized cluster experience. For the benefits of using the simplified Linux service manager, see [Migrating to Autopilot clusters and Cloud Run](/migrate/containers/docs/autopilot-overview).\n\nGKE Enterprise is an application management platform that provides a\nconsistent development and operations experience for cloud and on-premises\nenvironments. GKE Enterprise includes a set of core components, including the\nfollowing:\n\n- [GKE clusters](/anthos/clusters/docs): container orchestration and\n management service for running Kubernetes clusters in both cloud and\n on-premises environments. GKE Enterprise relies on\n GKE clusters on Google Cloud or Google Distributed Cloud\n to manage Kubernetes installations in the environments where you intend to\n deploy your applications.\n\n- [Config Sync](/anthos-config-management/docs/config-sync-overview):\n continuously reconciles your clusters to a central set of configurations that\n are stored in a source of truth, like one or more Git repositories.\n\n- [Policy Controller](/anthos-config-management/docs/concepts/policy-controller):\n defines, automates, and enforces policies across environments to meet your\n organization's security and compliance requirements.\n\n- [Config Controller](/anthos-config-management/docs/concepts/config-controller-overview):\n a hosted service to provision and orchestrate Google Cloud resources.\n\n- [Cloud Service Mesh](/service-mesh/docs): manages and secures traffic between\n services while monitoring, troubleshooting, and improving application\n performance.\n\n- [GKE Enterprise security](/anthos/docs): secures your hybrid and\n multi-cloud deployments by providing consistent controls across your\n environments.\n\nAbout Cloud Run\n---------------\n\nCloud Run is a managed compute platform that lets you run\nstateless containers using web requests or Pub/Sub events.\nThe simplified Linux service manager lets you deploy your migrated container\nworkloads on Cloud Run.\n\n- For the benefits of using the simplified Linux service manager, see [Migrating to Autopilot clusters and Cloud Run](/migrate/containers/docs/services-manager).\n\nWhat's next\n-----------\n\n- Learn about the [benefits of migrating to containers](/migrate/containers/docs/anthos-migrate-benefits)."]]